repl.scm: use print-exception
[bpt/guile.git] / module / language / ecmascript / spec.scm
1 ;;; ECMAScript specification for Guile
2
3 ;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
4
5 ;;;; This library is free software; you can redistribute it and/or
6 ;;;; modify it under the terms of the GNU Lesser General Public
7 ;;;; License as published by the Free Software Foundation; either
8 ;;;; version 3 of the License, or (at your option) any later version.
9 ;;;;
10 ;;;; This library is distributed in the hope that it will be useful,
11 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ;;;; Lesser General Public License for more details.
14 ;;;;
15 ;;;; You should have received a copy of the GNU Lesser General Public
16 ;;;; License along with this library; if not, write to the Free Software
17 ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
19 ;;; Code:
20
21 (define-module (language ecmascript spec)
22 #:use-module (system base language)
23 #:use-module (language ecmascript parse)
24 #:use-module (language ecmascript compile-tree-il)
25 #:export (ecmascript))
26
27 ;;;
28 ;;; Language definition
29 ;;;
30
31 (define-language ecmascript
32 #:title "ECMAScript"
33 #:reader (lambda (port env) (read-ecmascript/1 port))
34 #:compilers `((tree-il . ,compile-tree-il))
35 ;; a pretty-printer would be interesting.
36 #:printer write
37 )