-
Notifications
You must be signed in to change notification settings - Fork 156
-
Notifications
You must be signed in to change notification settings - Fork 156
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
documentation bug #71
Comments
Ah, thanks for reporting! |
I was not aware I had write access. On Thu, Jan 23, 2014 at 3:51 PM, Mathias notifications@github.com wrote:
|
Can you check? |
I edited, you check :-) On Thu, Jan 23, 2014 at 4:54 PM, Mathias notifications@github.com wrote:
|
Cool, thanks! |
I was reading the documentation and API of parboiled and was wandering on a few things. Why do you encode the syntax definition into JVM code? Syntax definition is a data structure and it could be encoded into a structure of Java objects that you build up when the parser definition code is executed. This approach would not require asm library and proxy classes and all such things. However, if you chose to let the user encode the syntax into methods and since you need proxies to cut off the wire when descending into recursive call stack, why do you generate the proxies during run time? I see nothing against annotation processor solution to this issue (btw, an issue that I can not see why was created at the first place)? Dipl. Ing. Peter Verhas On 2014.01.23., at 16:57, Mathias notifications@github.com wrote:
|
This is exactly what is happening. The rule method code does create a data structure of java objects.
Bytecode rewriting via ASM is mainly done to support inline parser action logic without the need for anonymous inner classes. It does enable something like "parsing-specific closures/lambdas". |
Seems to be a copy/paste error in the documentation on page
https://github.com/sirthias/parboiled/wiki/Action-Variables
in the example. Seems
just has doubled copy of the first few lines.
The text was updated successfully, but these errors were encountered: