ParserToken.cs 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #region Header
  2. /**
  3. * ParserToken.cs
  4. * Internal representation of the tokens used by the lexer and the parser.
  5. *
  6. * The authors disclaim copyright to this source code. For more details, see
  7. * the COPYING file included with this distribution.
  8. **/
  9. #endregion
  10. namespace LitJson
  11. {
  12. internal enum ParserToken
  13. {
  14. // Lexer tokens (see section A.1.1. of the manual)
  15. None = System.Char.MaxValue + 1,
  16. Number,
  17. True,
  18. False,
  19. Null,
  20. CharSeq,
  21. // Single char
  22. Char,
  23. // Parser Rules (see section A.2.1 of the manual)
  24. Text,
  25. Object,
  26. ObjectPrime,
  27. Pair,
  28. PairRest,
  29. Array,
  30. ArrayPrime,
  31. Value,
  32. ValueRest,
  33. String,
  34. // End of input
  35. End,
  36. // The empty rule
  37. Epsilon
  38. }
  39. }