You haven't shown your revised grammar. However, in the old grammar the xmldecl 
rule says that an attribute is required, so feeding in just:

xml

will not satisfy xmldecl.

-- Graham

At 10/13/2009 11:24 AM, Evan Metheny wrote:
>Thanks for the response Graham
>
>> Fragments can only be part of another lexer rule, they are not stand-alone 
>token-producing lexer rules.  Henxe the missing token exception.
>
>OK that makes sense, when changing fragment GENERIC_ID to GENERIC_ID.
>The "xmldecl" rule breaks with "mismatched set exception" when trying
>to recognize "xml". Thats what i was trying to explain with:
>
>>
>> Also:
>>> I cant
>>>understand why it would break the recognition of "XML" when its before
>>>the attribute call.
>>
>> So far as I know, there is no impact of order in which the lexer and 
>parser rules appear in the .g file.
>
>Thanks
>
>-Evan


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to