IronJS icon indicating copy to clipboard operation
IronJS copied to clipboard

Publish IronJS.Compiler.Parser

Open jlarsson opened this issue 14 years ago • 2 comments

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.

jlarsson avatar Jul 01 '11 08:07 jlarsson

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).

fholm avatar Jul 01 '11 10:07 fholm

You could always use reflection in .NET to force access to it for now even though it's marked "internal." :)

crpietschmann avatar Aug 26 '11 20:08 crpietschmann