PageRenderTime 29ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Boo.Lang.Parser/antlr/antlr/ParserSharedInputState.cs

https://github.com/boo/boo-lang
C# | 44 lines | 16 code | 7 blank | 21 comment | 0 complexity | 5588468f1af376e140e75e9221bc67ff MD5 | raw file
Possible License(s): GPL-2.0
  1. using System;
  2. namespace antlr
  3. {
  4. /*ANTLR Translator Generator
  5. * Project led by Terence Parr at http://www.jGuru.com
  6. * Software rights: http://www.antlr.org/license.html
  7. *
  8. * $Id:$
  9. */
  10. //
  11. // ANTLR C# Code Generator by Micheal Jordan
  12. // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
  13. // Anthony Oguntimehin
  14. //
  15. // With many thanks to Eric V. Smith from the ANTLR list.
  16. //
  17. /*This object contains the data associated with an
  18. * input stream of tokens. Multiple parsers
  19. * share a single ParserSharedInputState to parse
  20. * the same stream of tokens.
  21. */
  22. public class ParserSharedInputState
  23. {
  24. /*Where to get token objects */
  25. protected internal TokenBuffer input;
  26. /*Are we guessing (guessing>0)? */
  27. public int guessing = 0;
  28. /*What file (if known) caused the problem? */
  29. protected internal string filename;
  30. public virtual void reset()
  31. {
  32. guessing = 0;
  33. filename = null;
  34. input.reset();
  35. }
  36. }
  37. }