[antlr-interest] Performance Question

Trey Spiva Trey.Spiva at embarcadero.com
Thu Feb 27 05:49:14 PST 2003


Is it better to increase the look ahead or is it better use semantic
predicates?
 
Example:
options
{
   ... 
   k = 2;
}
 
...
 
someRule
  : IDENT LPAREN
  | IDENT LBRACK
  ;
 
or is it better to do:
 
someRule
  : (IDENT LPAREN)=>IDENT LPAREN
  | IDENT LBRACK
  ;
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030227/f2473bfe/attachment.html


More information about the antlr-interest mailing list