[antlr-interest] Optimizations for CSharp3 target with large grammars and output=AST
Ranco Marcus
ranco.marcus at epirion.nl
Sun Aug 7 00:09:01 PDT 2011
Hi Sam,
Sounds interesting. I would be happy to test these improvements. Let me know if I can help you.
Regards, Ranco
On 7 aug. 2011, at 01:52, "Sam Harwell" <sharwell at pixelminegames.com> wrote:
> Hello everyone,
>
>
>
> I'm working on codegen optimization for grammars with output=AST. Medium to
> large grammars should see a significant improvement in the way local
> variables are handled in rules, *especially* when rewrite operators are
> used.
>
>
>
> Since this is currently an experimental optimization, I'd prefer the initial
> testers be advanced users familiar with both the creation/usage of grammars
> and the C# code generated by ANTLR. If you have a grammar which would
> particularly benefit from this and want to help test this version, let me
> know and I'll send you information about the preview release. Here is a
> summary of some the optimizations included:
>
>
>
> . Label aliasing where possible for both tokens and rule return
> values.
>
> . Removal of Rewrite*Stream variables which are not actually
> referenced by a rule's rewrite blocks.
>
> . Removal of local variables for tokens and rules which are not
> referenced in an action and either aren't in the rewrite rule or have a
> bang(!) operator.
>
>
>
> Thanks,
>
> Sam
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list