remove `version' field from <language>
[bpt/guile.git] / module / language / ecmascript / spec.scm
CommitLineData
4e297671
AW
1;;; ECMAScript specification for Guile
2
246ea9e1 3;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
4e297671 4
53befeb7
NJ
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
4e297671
AW
18
19;;; Code:
20
21(define-module (language ecmascript spec)
22 #:use-module (system base language)
23 #:use-module (language ecmascript parse)
eb1482ac 24 #:use-module (language ecmascript compile-tree-il)
4e297671
AW
25 #:export (ecmascript))
26
27;;;
28;;; Language definition
29;;;
30
31(define-language ecmascript
246ea9e1 32 #:title "ECMAScript"
4b2afc62 33 #:reader (lambda (port env) (read-ecmascript/1 port))
eb1482ac 34 #:compilers `((tree-il . ,compile-tree-il))
4e297671
AW
35 ;; a pretty-printer would be interesting.
36 #:printer write
37 )