[antlr-interest] White space needed in the parsing.
jack zhang
jackgzhang2 at yahoo.com
Thu Sep 18 14:57:35 PDT 2008
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, 向雅 <fyaoxy at gmail.com> wrote:
From: 向雅 <fyaoxy at gmail.com>
Subject: Re: [antlr-interest] White space needed in the parsing.
To: jackgzhang2 at yahoo.com
Cc: antlr-interest at antlr.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080918/196c6285/attachment.html
More information about the antlr-interest
mailing list