Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compiler Tools Pccts > how to resolve ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 86 of 134
Post > Topic >>

how to resolve this nondeterminism between INT and DATE?

by oliver.kowalke@[EMAIL PROTECTED] (Oliver Kowalke) Jan 9, 2005 at 08:28 AM

Hello,
I've a problem resolving a nondeterminism between INT and DATE
('mm'-'dd'-'yy') in ANTLR. Could you give me a hint please.
thanks
Oliver

--- grammar ---

....
  
class KlarfLexer extends Lexer;

options 
{
    k=3;        
    ex****tVocab=KLARF;
    charVocabulary='\u0000'..'\u007F';
    caseSensitive=false;
    caseSensitiveLiterals=false;
}

INT
        : ( '0'..'9' )+
;

....

DATE
        : ( ('0'..'9')('0'..'9') '-')=>
                ('0'..'9')('0'..'9') '-' ('0'..'9')('0'..'9') '-'
('0'..'9')('0'..'9')
        | { $setType(INT); }
;
 
....
 




 1 Posts in Topic:
how to resolve this nondeterminism between INT and DATE?
oliver.kowalke@[EMAIL PRO  2005-01-09 08:28:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:30:38 CDT 2008.