1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00
guile/module/language/ecmascript
Andy Wingo e05320fa54 compile for-in
* module/language/ecmascript/base.scm (prop-keys): New method, returns
  the list of keys of props of this instance.

* module/language/ecmascript/impl.scm: Refactor the global object into a
  special kind of module object. Provide a prop-keys implementation for
  module objects.

* module/language/ecmascript/compile-ghil.scm (comp): Compile for-in.

* module/language/ecmascript/impl.scm: Reshuffly things, and implement
  make-enumerator, a helper for use in for-in statements.

* module/language/ecmascript/parse.scm (parse-ecmascript): Fix parsing of
  for (var foo in bar) {}...
2009-02-22 16:01:11 +01:00
..
array.scm + for strings, global js object, new Foo() works 2009-02-22 10:51:49 +01:00
base.scm compile for-in 2009-02-22 16:01:11 +01:00
compile-ghil.scm compile for-in 2009-02-22 16:01:11 +01:00
function.scm + for strings, global js object, new Foo() works 2009-02-22 10:51:49 +01:00
impl.scm compile for-in 2009-02-22 16:01:11 +01:00
parse-lalr.scm add ecmascript parser 2009-02-18 00:07:51 +01:00
parse.scm compile for-in 2009-02-22 16:01:11 +01:00
spec.scm world's stupidest ecmascript compiler 2009-02-18 00:49:21 +01:00
tokenize.scm ecmascript tokens have source info 2009-02-22 11:37:55 +01:00