Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants