public static void main(String args[]) throws Exception { exprLexer lex = new exprLexer( new ANTLRFileStream("/Users/dannluciano/Sources/MyLanguage/input.txt", "UTF8")); CommonTokenStream tokens = new CommonTokenStream(lex); exprParser g = new exprParser(tokens, 49100, null); try { g.program(); } catch (RecognitionException e) { e.printStackTrace(); } }
public static void main(String args[]) throws Exception { ChronosLexer lex = new ChronosLexer( new ANTLRFileStream( "/Users/shannonlee/PLT_Team20/SHANNONTEST/__Test___input.txt", "UTF8")); CommonTokenStream tokens = new CommonTokenStream(lex); ChronosParser g = new ChronosParser(tokens, 49100, null); try { g.program(); } catch (RecognitionException e) { e.printStackTrace(); } }