summaryrefslogtreecommitdiff
path: root/module/language/ecmascript/parse.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-02-21 00:31:43 +0100
committerAndy Wingo <wingo@pobox.com>2009-02-21 00:33:04 +0100
commit3bef3ae42886d910c43655792ecd9cfdc73ba886 (patch)
treeb7245810a10a421a77b9cee0272cf7c1aeddd621 /module/language/ecmascript/parse.scm
parentb358fe65021a40fa80238d8f426f810d150acb08 (diff)
downloadguile-3bef3ae42886d910c43655792ecd9cfdc73ba886.tar.gz
implement do, while, for
* module/language/ecmascript/compile-ghil.scm (comp): Use ghil-bind when making temp vars, so that disassembly understands things. Implement do, while, and for. * module/language/ecmascript/parse.scm (parse-ecmascript): Some tweaks. * module/language/ecmascript/impl.scm (language): Export ->boolean.
Diffstat (limited to 'module/language/ecmascript/parse.scm')
-rw-r--r--module/language/ecmascript/parse.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/language/ecmascript/parse.scm b/module/language/ecmascript/parse.scm
index e088cbece..27070268c 100644
--- a/module/language/ecmascript/parse.scm
+++ b/module/language/ecmascript/parse.scm
@@ -175,8 +175,8 @@
(PrimaryExpression (this) -> 'this
(null) -> 'null
- (true) -> #t
- (false) -> #f
+ (true) -> 'true
+ (false) -> 'false
(Identifier) -> `(ref ,$1)
(StringLiteral) -> `(string ,$1)
(RegexpLiteral) -> `(regexp ,$1)