On Tue, 2008-09-02 at 02:24 -0400, [EMAIL PROTECTED] wrote:

> Thanks for the help!!
> 
> I tried this new definition of LINE_COMMENT, I also changed the
> "operator" grammar definition to 
> operator
> options { k=2;}
>       :
>               STAR
>         |     '/'
>         |     '+'
>         |     '-'
>         |     DBLSTAR
>         |     '<<'
>         |     '>>'
>       ;
> 
> And now I get a different kind of exception. 
> 
> line 1:1 rule LINE_COMMENT failed predicate: { getCharPositionInLine()
> == 0 }?


You probably want a gated predicate here, not a simple semantic
predicate.

{ getCharPositionInLine() == 0 }?=> X Y Z....

Jim

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to