[antlr-interest] Delimited identifiers and suffix functions

Terence Parr parrt at cs.usfca.edu
Mon Dec 12 09:54:39 PST 2005


as long as identifier does not include LASTCHILD nor LAG, you're  
cool.  Ignore the warning.
Ter
On Dec 12, 2005, at 9:22 AM, <John.Ericson at thomson.com>  
<John.Ericson at thomson.com> wrote:

> I am having a problem with parser nondeterminism between alt 1 and  
> the exit branch of the following rule (simplified)...
>
> member : identifier (DOT identifier)*
>            (DOT LASTCHILD
>          | DOT LAG OPEN_PAREN index CLOSE_PAREN)*
>        ;
>
> I want to successfully parse the following types of members...
>
> ident0.ident1.ident2.identN
> ident0.ident1.ident2.identN.lastchild
> ident0.ident1.ident2.identN.lastchild.lag(1)
>
> Any ideas?
>
> John Ericson
> Sr. Programmer/Analyst
> Thomson Medstat
>



More information about the antlr-interest mailing list