IronJS
IronJS copied to clipboard
Publish IronJS.Compiler.Parser
What I really want to want is access to a factory from source text to AST.
Currently, the code below is prohibited due to IronJS.Compiler.Parser being internal.
Global.eval(IronJS.Compiler.Core.compileEval(env, IronJS.Compiler.Parser.parse(code)));
This is useful for eval() but possibly also for script validation.
We'll make sure to open up the IronJS.Compiler.Parser for external use, the reason it's been kept internal is that the API is a bit crufty and not finalized (there's a lot of "gotchas" in there atm).
You could always use reflection in .NET to force access to it for now even though it's marked "internal." :)