01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: /** This object contains the data associated with an
09: * input stream of tokens. Multiple parsers
10: * share a single ParserSharedInputState to parse
11: * the same stream of tokens.
12: */
13: public class ParserSharedInputState {
14: /** Where to get token objects */
15: public TokenBuffer input;
16:
17: /** Are we guessing (guessing>0)? */
18: public int guessing = 0;
19:
20: /** What file (if known) caused the problem? */
21: protected String filename;
22:
23: /*public void reset() {
24: guessing = 0;
25: filename = null;
26: input.reset();
27: }*/
28:
29: public String getFilename() {
30: return filename;
31: }
32:
33: public TokenBuffer getInput() {
34: return input;
35: }
36: }
|