223224225226227228229230231232233
e.printStackTrace(); } } */ public void process() throws IOException { CharStream input = new ANTLRFileStream(dispelFile); DISPEL lexer = new DISPEL(input); Token token; while ((token = lexer.nextToken()) != Token.EOF_TOKEN) { tp.process(token); }
241242243244245246247248249250251
*/ public Generator(InputStream is) { tp = new TokenProcessor(docType, tabSize, latexSpaceSize, numberLines); CharStream input; try { input = new ANTLRInputStream(is); DISPEL lexer = new DISPEL(input); Token token;