1 package persistence.antlr; 2 3 /* ANTLR Translator Generator 4 * Project led by Terence Parr at http://www.jGuru.com 5 * Software rights: http://www.antlr.org/license.html 6 * 7 */ 8 9 /** This object contains the data associated with an 10 * input stream of tokens. Multiple parsers 11 * share a single ParserSharedInputState to parse 12 * the same stream of tokens. 13 */ 14 public class ParserSharedInputState { 15 /** Where to get token objects */ 16 protected TokenBuffer input; 17 18 /** Are we guessing (guessing>0)? */ 19 public int guessing = 0; 20 21 /** What file (if known) caused the problem? */ 22 protected String filename; 23 24 public void reset() { 25 guessing = 0; 26 filename = null; 27 input.reset(); 28 } 29 } 30