Eric,

thinking about it yesterday I came to the same conclusion. Multi-tasking has
this strange effect on me and I didn't realize that I was trying to use
templates in a lexer rule until I was in bed.

Thanks anyway for the input and patience.

Regards,
Gabriel MirĂ³

On Thu, Sep 22, 2011 at 8:34 PM, The Researcher <[email protected]>wrote:

>
>
> On Thu, Sep 22, 2011 at 3:46 PM, Gabriel Miro <[email protected]> wrote:
>
>> COMP_OP    :     '<>' -> template() "!="
>>        | '<='
>>        | '<'
>>        | '>='
>>        | '>'
>>        ;
>>
>
>  String templates are not my strong suit and I could not verify this in the
> book on on the web site, so there is a chance this might be wrong.
>
> COMP_OP is a lexer rule and lexer rules don't support string templates.
> Think about what a lexer and parser do and it should be more apparent.
>
> Eric
>
>
>
>

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