forked from jasder/antlr
12 lines
373 B
Java
12 lines
373 B
Java
import org.antlr.v4.runtime.*;
|
|
|
|
public class TestE {
|
|
public static void main(String[] args) throws Exception {
|
|
CharStream input = new ANTLRFileStream(args[0]);
|
|
ELexer lex = new ELexer(input);
|
|
CommonTokenStream tokens = new CommonTokenStream(lex);
|
|
tokens.fill();
|
|
for (Object t : tokens.getTokens()) System.out.println(t);
|
|
}
|
|
}
|