Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Publish IronJS.Compiler.Parser #68

Open
jlarsson opened this issue Jul 1, 2011 · 2 comments
Open

Publish IronJS.Compiler.Parser #68

jlarsson opened this issue Jul 1, 2011 · 2 comments

Comments

@jlarsson
Copy link

jlarsson commented Jul 1, 2011

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.

@fholm
Copy link
Owner

fholm commented Jul 1, 2011

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

@crpietschmann
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants