further ecmascript work
authorAndy Wingo <wingo@pobox.com>
Thu, 19 Feb 2009 12:55:55 +0000 (13:55 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 19 Feb 2009 12:55:55 +0000 (13:55 +0100)
commit131f7d6c71d0a0fe4f60b49a39efcd4f8ace6b0c
tree4ffdd807ccdcd05ad49d2da7190751fc30006bb3
parent8fa6886d7af7c012c4cd17f793e5038931ffb4a0
further ecmascript work

* libguile/vm-i-system.c (drop, return): Declare drop and return as
  popping one arg from the stack.

* module/language/ghil/compile-glil.scm:
* module/language/glil/compile-assembly.scm (make-meta): Adjust so that
  we declare 'drop and 'return calls as popping one arg from the stack.

* module/language/ecmascript/compile-ghil.scm (comp, comp-body): Flesh
  out a bit more. Most significantly, scoping within functions obeys
  javascript semantics better, modulo bits about with() forms.

* module/language/ecmascript/impl.scm: Define some runtime helper
  routines.
* module/language/Makefile.am (SOURCES): Add impl.scm.

* module/language/ecmascript/parse.scm (parse-ecmascript): Minor tweaks.

* module/language/ecmascript/tokenize.scm (read-identifier): Identifiers
  now read as symbols, not strings.
libguile/vm-i-system.c
module/language/Makefile.am
module/language/ecmascript/compile-ghil.scm
module/language/ecmascript/impl.scm [new file with mode: 0644]
module/language/ecmascript/parse.scm
module/language/ecmascript/tokenize.scm
module/language/ghil/compile-glil.scm
module/language/glil/compile-assembly.scm