/Dependencies/boo/lib/antlr-2.7.5/lib/csharp/src/antlr/ParserSharedInputState.cs
C# | 44 lines | 16 code | 7 blank | 21 comment | 0 complexity | 5588468f1af376e140e75e9221bc67ff MD5 | raw file
Possible License(s): GPL-2.0
- using System;
- namespace antlr
- {
- /*ANTLR Translator Generator
- * Project led by Terence Parr at http://www.jGuru.com
- * Software rights: http://www.antlr.org/license.html
- *
- * $Id:$
- */
- //
- // ANTLR C# Code Generator by Micheal Jordan
- // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
- // Anthony Oguntimehin
- //
- // With many thanks to Eric V. Smith from the ANTLR list.
- //
-
- /*This object contains the data associated with an
- * input stream of tokens. Multiple parsers
- * share a single ParserSharedInputState to parse
- * the same stream of tokens.
- */
- public class ParserSharedInputState
- {
- /*Where to get token objects */
- protected internal TokenBuffer input;
-
- /*Are we guessing (guessing>0)? */
- public int guessing = 0;
-
- /*What file (if known) caused the problem? */
- protected internal string filename;
-
- public virtual void reset()
- {
- guessing = 0;
- filename = null;
- input.reset();
- }
- }
- }