kevin curtis wrote:
Re:
eval.hermetic(program :(string | AST), thisValue, optBindings) :any
Is a 'canonical' AST part of the plans for ecmascript 6/harmony.
I hope so; that would be extremely useful. I would like to see an
ECMAScript source - AST parser (as well as an AST evaluator) in the
+1 from me too. AST + tools (compile JS to AST, get AST from a function
object, produce a function object from AST, simple AST manipulations,
and so on) will help us (JS developers) tremendously by reducing the
existing hackery, and increasing the performance, while clearing the
road for the
On May 9, 2009, at 9:19 AM, David-Sarah Hopwood wrote:
kevin curtis wrote:
Re:
eval.hermetic(program :(string | AST), thisValue, optBindings) :any
Is a 'canonical' AST part of the plans for ecmascript 6/harmony.
I hope so; that would be extremely useful. I would like to see an
ECMAScript
On May 9, 2009, at 11:57 AM, Brendan Eich wrote:
{op: ||,
left: {op: ||,
left: {op: Id, value: X},
right: {op: Id, value: Y}},
right: {op: Id, value: Z}}
A definitional interpreter the recursively evaluates nodes can
handle this easily enough, although the right-recursive
On May 9, 2009, at 2:32 PM, David-Sarah Hopwood wrote:
I would mildly prefer to use an S-expression-style AST, like this:
[||,
[||,
[Id, X],
[Id, Y]],
[Id, Z]]
which is more concise, does not lose any useful information, and
is easier to remember. This is the same style as
On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood
david-sa...@jacaranda.org wrote:
[...] but the AST should preserve the associativity defined in the
language spec.
But which language spec? Again, specs only traffic in observable
differences. Since ES5 does not define any std parse or AST
On May 9, 2009, at 2:59 PM, Mark S. Miller wrote:
On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood
david-sa...@jacaranda.org wrote:
[...] but the AST should preserve the associativity defined in the
language spec.
But which language spec? Again, specs only traffic in observable
Mark S. Miller wrote:
On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood
david-sa...@jacaranda.org wrote:
[...] but the AST should preserve the associativity defined in the
language spec.
But which language spec? Again, specs only traffic in observable
differences. Since ES5 does not
8 matches
Mail list logo