Thx. In this case, what does => and -> means?
I guess -> means it will will be matched in the TreeWalker's rule : (Something
like:)
expr returns [String s]
: ^(STRING[$text]) {s=$test;}
Is that correct ?
Then what does
(WORD+)=>WORD+
means?
Thx !
--- On Thu, 9/18/08, 向雅 <[EMAIL PROTECTED]> wrote:
From: 向雅 <[EMAIL PROTECTED]>
Subject: Re: [antlr-interest] White space needed in the parsing.
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Thursday, September 18, 2008, 2:42 PM
Hi,
If you have AST, you would wanna this in parser:
string : ( (WORD+)=>WORD+ | SingleQSTRING |
DoubleQSTRING)->^(STRING[$text]);
hope this make happy.
--~--~---------~--~----~------------~-------~--~----~
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