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

Enhancement request for the bsh.Parser #56

Open
GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment
Open

Enhancement request for the bsh.Parser #56

GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
--
I want to do something like a pre compiler and replace special taged strings. 
Lets say comething like: 

  b = 12;
  a = `precompiler_action(`another precomiler_action(b)`)`;
  c = a*2;
  d = `another precomiler_action(c)`;

More details in this thread: 
http://beanshell.2283338.n4.nabble.com/How-could-I-split-a-script-into-its-singl
e-statements-tp3901030p3901030.html

What is the expected output? What do you see instead?
--
I would need a parsed tree so that I could do something like this:
  for (Statement s : bsh.Parser.Statements(wholeScriptCode)) {
    s.setStatementString(doPrecompileAction(s.getStatementString()));
    s.eval();
  }

What version of the product are you using? On what operating system?
--
2.1b4

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Oct 2011 at 5:43

@GoogleCodeExporter
Copy link
Author

This appears to be a duplicate of issue #37.

Original comment by [email protected] on 11 Dec 2012 at 9:19

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

1 participant