[antlr-interest] upgrade question
Terence Parr
parrt at jguru.com
Sat Feb 16 10:01:25 PST 2002
On Friday, February 15, 2002, at 06:31 PM, nagii5 wrote:
> Upgrading from 2.7.0 to 2.7.1
>
> So i had this Token
>
> protected SCRIPT: "<%" MY_CONTENT "%>" ;
>
> protected MY_CONTENT
> : ~('!' | '=' | '@' | '-' | '%' | '\uffff')
> ( {!(LA(1) == '%' && LA(2) == '>') }? NL_CTR )* ;
Try ( options {greedy=false;} : . ) * for MY_CONTENT. It should stop
when it sees %>.
Ter
>
> protected NL_CTR :c:. { if (c=='\n') newline(); } ;
>
> also my
> charVocabulary = '\3'..'\uffff'
>
>
> Doesnt seem to get kicked in..
> AM i doing anything wrong?
> why is the generated code different in both cases?
> and why did this work with 270?
>
> TIA
> nagesh
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
--
Chief Scientist & Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list