public LexerSource(Reader r, boolean ppvalid) { this.reader = new JoinReader(r); this.ppvalid = ppvalid; this.bol = true; this.include = false; this.digraphs = true; this.ucount = 0; this.line = 1; this.column = 0; this.lastcolumn = -1; this.cr = false; }
public LexerSource(Reader r, boolean ppvalid) { this.reader = new JoinReader(r); this.ppvalid = ppvalid; this.bol = true; this.include = false; this.digraphs = true; this.ucount = 0; this.line = 1; this.column = 0; this.lastcolumn = -1; this.cr = false; }
public LexerSource(Reader r, boolean ppvalid) { this.reader = new JoinReader(r); this.ppvalid = ppvalid; this.bol = true; this.include = false; this.digraphs = true; this.ucount = 0; this.line = 1; this.column = 0; this.lastcolumn = -1; this.cr = false; }
private void testJoinReader(String in, String out, boolean tg) throws Exception { System.out.println("Testing " + in + " => " + out); StringReader r = new StringReader(in); JoinReader j = new JoinReader(r, tg); for (int i = 0; i < out.length(); i++) { int c = j.read(); System.out.println("At offset " + i + ": " + (char) c); assertEquals(out.charAt(i), c); } assertEquals(-1, j.read()); assertEquals(-1, j.read()); }
private void testJoinReader(String in, String out, boolean tg) throws Exception { System.out.println("Testing " + in + " => " + out); StringReader r = new StringReader(in); JoinReader j = new JoinReader(r, tg); for (int i = 0; i < out.length(); i++) { int c = j.read(); System.out.println("At offset " + i + ": " + (char)c); assertEquals((char)out.charAt(i), c); } assertEquals(-1, j.read()); assertEquals(-1, j.read()); }