[antlr-interest] ANTLRWorks - lexer run only?
Terence Parr
parrt at cs.usfca.edu
Wed Aug 15 15:29:12 PDT 2007
On Aug 15, 2007, at 2:31 PM, Viðar Svansson wrote:
> On 8/15/07, Terence Parr <parrt at cs.usfca.edu> wrote:
>> start : .+ ;
>
> Can I use this to match "any text" token and access its content in the
> action? I need something to to match:
>
> start : ID '=' ANYTEXT ';' ;
>
> And then just access the ANYTEXT value in the action.
Sure as long as ANYTEXT doesn't collide with the other tokens.
Ter
More information about the antlr-interest
mailing list