[antlr-interest] caseSensitive question?

ronald.petty at milliman.com ronald.petty at milliman.com
Fri Apr 9 09:50:10 PDT 2004


When I try to match "Dim" this doesn't work, however if I try "dim" it 
works.  Is there something besides caseSensitive to set?  Is my 
charVocabulary or something interferring? 
Thanks
Ron

options {
}

class VB6Lexer extends Lexer;

options {
        exportVocab=VB6;
        charVocabulary='\3'..'\377'; //Latin, need to figure out Japanese 
charat
er sets for UNICODE, you can do non continuous ranges
        caseSensitive=false;

}

tokens {
        DIM     = "dim";
        FUNCTION        = "function";
        SUB     = "sub";
}

WS
        :       ' '
        |       '\t'
        |       '\r' '\n'
        |       '\n'
        ;

SEMI    :       ','
        ;

ID
        options {
                testLiterals=true;
                paraphrase = "an identifier";

        }
        :       ('a'..'z') ('a'..'z'|'0'..'9'|'_'|'.')*
        ;

SL_COMMENT
        :       "'" (~('\r'|'\n'))* (("\r\n")=>'\r''\n'|'\n')
        ;

**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or 
opinions upon which reliance may be made by the addressee or any
other party, and it should be considered to be a work in progress.
**************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20040409/34211c05/attachment.html


More information about the antlr-interest mailing list