01: package persistence.antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.jGuru.com
05: * Software rights: http://www.antlr.org/license.html
06: *
07: */
08:
09: /** 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: }
|