mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 00:30:21 +02:00
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.
This commit is contained in:
parent
b358fe6502
commit
3bef3ae428
3 changed files with 83 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue