/** * For testing only. */ public static void main(String[] args) throws IOException { Tokenizer<String> t = new LexerTokenizer(new JFlexDummyLexer((Reader) null), new BufferedReader(new FileReader(args[0]))); while (t.hasNext()) { System.out.println("token " + t.next()); } }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
public void pushBack(int n) { yypushback(n); }
boolean eof = zzRefill(); zzScanError(ZZ_NO_MATCH);
JFlexDummyLexer scanner = null; try { scanner = new JFlexDummyLexer( new java.io.FileReader(argv[i]) ); while ( !scanner.yy_atEOF ) scanner.yylex();
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ private void yypushback(int number) { if ( number > yylength() ) yy_ScanError(YY_PUSHBACK_2BIG); yy_markedPos -= number; }
private static int [] zzUnpackTrans() { int [] result = new int[6]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; }
private static int [] zzUnpackAttribute() { int [] result = new int[3]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; }
private static int [] zzUnpackRowMap() { int [] result = new int[3]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; }
private static int [] zzUnpackAction() { int [] result = new int[3]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
boolean eof = zzRefill(); zzScanError(ZZ_NO_MATCH);
java.io.FileInputStream stream = new java.io.FileInputStream(argv[i]); java.io.Reader reader = new java.io.InputStreamReader(stream, encodingName); scanner = new JFlexDummyLexer(reader); while ( !scanner.zzAtEOF ) scanner.yylex();
private static int [] zzUnpackTrans() { int [] result = new int[6]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; }
private static int [] zzUnpackAttribute() { int [] result = new int[3]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; }
private static int [] zzUnpackRowMap() { int [] result = new int[3]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; }
private static int [] zzUnpackAction() { int [] result = new int[3]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
boolean eof = zzRefill(); zzScanError(ZZ_NO_MATCH);
/** * For testing only. */ public static void main(String[] args) throws IOException { Tokenizer<String> t = new LexerTokenizer(new JFlexDummyLexer((Reader) null), new BufferedReader(new FileReader(args[0]))); while (t.hasNext()) { System.out.println("token " + t.next()); } }
public void pushBack(int n) { yypushback(n); }