1
Fork 0
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:
Andy Wingo 2009-02-20 18:16:34 +01:00
parent 45c10edb74
commit b358fe6502
4 changed files with 122 additions and 13 deletions

View file

@ -317,7 +317,7 @@
(AssignmentExpressionNoIn (ConditionalExpressionNoIn) -> $1
(LeftHandSideExpression AssignmentOperator AssignmentExpressionNoIn) -> `(,$2 ,$1 ,$3))
(AssignmentOperator (=) -> '=
(*=) -> '=
(*=) -> '*=
(/=) -> '/=
(%=) -> '%=
(+=) -> '+=