[antlr-interest] [BUG] in 2.7.2a2
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Oct 11 04:17:15 PDT 2002
on 10/11/02 5:15 AM, Terence Parr at parrt at jguru.com wrote:
>> on 10/11/02 12:24 AM, mzukowski at yci.com at mzukowski at yci.com wrote:
>>
>>> You need to have your parser import the vocabulary from the lexer.
>>> See
>>> http://www.antlr.org/doc/vocab.html and
>>> http://www.antlr.org/doc/options.html#importVocab
>>
>> I believe I have made this, otherwise how antlr could find EXISTED
>> vocabulary to corrupt it? :-)
>
> It would think it's a new token for use in generating a new tree I
> think. You definitely need to tell it to import a vocab if you have a
> separate file.
>
> I hope this is the problem anyway ;)
Okay, I think you are right.
I get confused because if lexer and parser in one file, we must make in both
exportVocab. But if in different then we need in lexer export, but in parser
imorpt.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list
send a letter to valentina-on at lists.macserve.net
-------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list