[antlr-interest] I am puzzled....

Lloyd Dupont lloyd at galador.net
Sat Aug 31 15:52:58 PDT 2002


why do I have an ambig warning with this lexer definition file ?
I really don't see (and, therefore, can't fix), does anyone has an idea ?
that would be helpfull :-)
cheers,
Lloyd

// ------------------- testGrammar.g --------------------
class TestLexer extends Lexer;
options {
 k=4;
 charVocabulary  = '\3'..'\377';
 testLiterals=false;
}

GLTYPE
    : "GLenum"
    | "GLbyte"
    | "GLshort"
    | "GLint"
    | "GLsizei"
    | "GLubyte"
    | "GLuint"
    | "GLfloat"
    | "GLushort"
    | ("GLclampf")=>"GLclampf"
    | "GLdouble"
    | "GLclampd"
    | "GLboolean"
    | "GLbitfield"
    ;
VOID
    : "void" 
    | "GLvoid"
    ;



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list