Last change
on this file since 1 was
1,
checked in by lnalod, 15 years ago
|
Initial import of YAO sources
|
File size:
1012 bytes
|
Line | |
---|
1 | using System; |
---|
2 | |
---|
3 | namespace antlr |
---|
4 | { |
---|
5 | /*ANTLR Translator Generator |
---|
6 | * Project led by Terence Parr at http://www.jGuru.com |
---|
7 | * Software rights: http://www.antlr.org/license.html |
---|
8 | * |
---|
9 | * $Id:$ |
---|
10 | */ |
---|
11 | |
---|
12 | // |
---|
13 | // ANTLR C# Code Generator by Micheal Jordan |
---|
14 | // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com |
---|
15 | // Anthony Oguntimehin |
---|
16 | // |
---|
17 | // With many thanks to Eric V. Smith from the ANTLR list. |
---|
18 | // |
---|
19 | |
---|
20 | /*This object contains the data associated with an |
---|
21 | * input stream of tokens. Multiple parsers |
---|
22 | * share a single ParserSharedInputState to parse |
---|
23 | * the same stream of tokens. |
---|
24 | */ |
---|
25 | |
---|
26 | public class ParserSharedInputState |
---|
27 | { |
---|
28 | /*Where to get token objects */ |
---|
29 | protected internal TokenBuffer input; |
---|
30 | |
---|
31 | /*Are we guessing (guessing>0)? */ |
---|
32 | public int guessing = 0; |
---|
33 | |
---|
34 | /*What file (if known) caused the problem? */ |
---|
35 | protected internal string filename; |
---|
36 | |
---|
37 | public virtual void reset() |
---|
38 | { |
---|
39 | guessing = 0; |
---|
40 | filename = null; |
---|
41 | input.reset(); |
---|
42 | } |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.