...
Code Block | ||||
---|---|---|---|---|
| ||||
public class RemoteDebugDriver { public static void main(String\[\] args) throws Exception { ANTLRInputStreamInputStream inputStreamstream = new ANTLRInputStreamByteArrayInputStream("SOME TEXT TO PARSE".getBytes()); // defaults to ISO-1 ANTLRInputStream inputStream = new ANTLRInputStream(stream); sampleLexer lexer = new sampleLexer( inputStream ); CommonTokenStream tokenStream = new CommonTokenStream(lexer); SampleParser parser = new sampleParser(tokenStream); parser.example(); System.exit(0); } } |
...