[antlr-interest] Using the ANTLRworks Debugger

Terence Parr parrt at cs.usfca.edu
Sun Nov 19 12:47:54 PST 2006


On Nov 19, 2006, at 12:31 PM, Randall R Schulz wrote:

> On Sunday 19 November 2006 12:29, Terence Parr wrote:
>> AtomicWord
>>
>>          :       ( LowerWord )
>>          |       ( SingleQuoted )
>>
>>          ;
>>
>> is above SingleQuoted and therefore matches it instead of
>> SingleQuoted. :)
>
> Eh? LowerWord must start with a lower-case alphabetic character.
> SingleQuoted must start with a single quote (a.k.a. apostrophe).
>
> How is that a conflict?

Both AtomicWord and SingleQUoted can match SingleQuoted, correct?    
seems to me that what you really want is

atomicWord not AtomicWord.


Ter


More information about the antlr-interest mailing list