[antlr-interest] Using the ANTLRworks Debugger
Terence Parr
parrt at cs.usfca.edu
Sun Nov 19 13:03:40 PST 2006
On Nov 19, 2006, at 12:53 PM, Randall R Schulz wrote:
> On Sunday 19 November 2006 12:47, Terence Parr wrote:
>> 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
>
> What does it mean to say SingleQuoted can match SingleQuoted?
I simply meant that AtomicWord matches SingleQuoted which means that
the lexer must decide which rule, AtomicWord or SingleQuoted, will
match the the production with the actual single quote in.
Ter
More information about the antlr-interest
mailing list