mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
property gets and puts implemented, yays
* module/language/ecmascript/compile-ghil.scm (@impl): Ok, don't recurse on args here. (comp): Implement property gets and puts and lexical assignment. (comp-body): Fix scanning of var forms. * module/language/ecmascript/impl.scm (prop-attrs): Allow for the prop attr array to be #f. * module/language/ecmascript/parse.scm (parse-ecmascript): Fix assignment parsing.
This commit is contained in:
parent
10e1bd278f
commit
7fb4230060
3 changed files with 18 additions and 9 deletions
|
@ -102,8 +102,8 @@
|
|||
(Identifier Initialiser) -> `(,$1 ,$2))
|
||||
(VariableDeclarationNoIn (Identifier) -> `(,$1)
|
||||
(Identifier Initialiser) -> `(,$1 ,$2))
|
||||
(Initialiser (= AssignmentExpression) -> $1)
|
||||
(InitialiserNoIn (= AssignmentExpressionNoIn) -> $1)
|
||||
(Initialiser (= AssignmentExpression) -> $2)
|
||||
(InitialiserNoIn (= AssignmentExpressionNoIn) -> $2)
|
||||
|
||||
(EmptyStatement (semicolon) -> '(begin))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue