/Dependencies/boo/src/Boo.Lang.Parser/antlr/antlr/TreeParserSharedInputState.cs

https://github.com/w4x/boolangstudio · C# · 37 lines · 12 code · 5 blank · 20 comment · 0 complexity · 50aa735bd749a7fc1d78cf5764da4262 MD5 · raw file

  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 AST. Multiple parsers
  19. * share a single TreeParserSharedInputState to parse
  20. * the same tree or to have the parser walk multiple
  21. * trees.
  22. */
  23. public class TreeParserSharedInputState
  24. {
  25. /*Are we guessing (guessing>0)? */
  26. public int guessing = 0;
  27. public virtual void reset()
  28. {
  29. guessing = 0;
  30. }
  31. }
  32. }