[antlr-interest] charVocab

Terence Parr parrt at jguru.com
Sun Feb 3 13:59:46 PST 2002


On Sunday, February 3, 2002, at 01:00  PM, nagii5 wrote:

> Gurus,
> I had a question about the usage of charVocabulary.
>
> i specified the following in my .g but still havent been
> aable to get antlr to recognize characters like
> '(' ')' '*' '/'
>
> im using antlr (2.7.0)
> heres some grammer i used..... assuming DECLARATION is one on the list
> of TOKENs.
>
> options {
>   charVocabulary='3'..'\uffff';

Use '\3' not '3', which is 0x33 hence you miss everything before like 
parens. ;)

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