| package edu.uci.ics.asterix.adm.parser; |
| public static void main(String args[]) throws ParseException, TokenMgrError, IOException, FileNotFoundException { |
| File file = new File(args[0]); |
| Reader freader = new BufferedReader(new InputStreamReader |
| (new FileInputStream(file), "UTF-8")); |
| AdmLexer flexer = new AdmLexer(freader); |
| System.out.println(AdmLexerConstants.tokenImage[t.kind]); |
| public Token next() throws ParseException { |
| public String tokenKindToString(int tokenKind) { |
| return AdmLexerConstants.tokenImage[tokenKind]; |
| <FALSE_LITERAL : "false"> |
| <INTEGER_LITERAL : ("-")? (<DIGIT>)+ > |
| ("-")? <INTEGER> ( "." <INTEGER> )? (<EXPONENT>)? |
| | < #EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+ > |
| | <INTEGER : (<DIGIT>)+ > |
| | <FLOAT_LITERAL: <DOUBLE_LITERAL>("f"|"F")> |
| <STRING_LITERAL : ("\"" (<EscapeQuot> | ~["\""])* "\"") > |
| <START_ORDERED_LIST : "["> |
| <START_UNORDERED_LIST : "{{"> |
| <END_UNORDERED_LIST : "}}"> |