mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
implement more operations
* module/language/ecmascript/base.scm: Implement some more robust property getters that convert strings to symbols. Implement has-property?. * module/language/ecmascript/compile-ghil.scm (comp): Implement lots more mathematical operators. We now do all expressions; on to statements. * module/language/ecmascript/impl.scm: Define some math helpers. They probably need to call ->number on some things. * module/language/ecmascript/parse.scm (parse-ecmascript): Fix a typo.
This commit is contained in:
parent
45c10edb74
commit
b358fe6502
4 changed files with 122 additions and 13 deletions
|
@ -317,7 +317,7 @@
|
|||
(AssignmentExpressionNoIn (ConditionalExpressionNoIn) -> $1
|
||||
(LeftHandSideExpression AssignmentOperator AssignmentExpressionNoIn) -> `(,$2 ,$1 ,$3))
|
||||
(AssignmentOperator (=) -> '=
|
||||
(*=) -> '=
|
||||
(*=) -> '*=
|
||||
(/=) -> '/=
|
||||
(%=) -> '%=
|
||||
(+=) -> '+=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue