[antlr-interest] problem with literal match

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Oct 4 03:36:08 PDT 2001

on 10/4/01 11:50, Ric Klaren at klaren at cs.utwente.nl wrote:

> Or maybe did you define the DROP token in your parser and not in the lexer?
> This would explain why it works with lexer and parser in one file. If you
> use exportvocab make sure you define *all* tokens in the lexer. In the
> parser you can safely add new imaginary AST tokens but *no* lexer tokens.
> Since how would the lexer know about them? (ok this could be fixed but
> antlr doesn't work that way now)

Aha, this is my case, I think.

I did not define in lexer tokens,
just use in Parser 

    rule : "drop" "table" ...

Best regards,
Ruslan Zasukhin


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