LiteralKind.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // JsonKit v0.5 - A simple but flexible Json library in a single .cs file.
  2. //
  3. // Copyright (C) 2014 Topten Software (contact@toptensoftware.com) All rights reserved.
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this product
  6. // except in compliance with the License. You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software distributed under the
  11. // License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  12. // either express or implied. See the License for the specific language governing permissions
  13. // and limitations under the License.
  14. namespace Topten.JsonKit
  15. {
  16. /// <summary>
  17. /// Describes the current literal in the json stream
  18. /// </summary>
  19. public enum LiteralKind
  20. {
  21. /// <summary>
  22. /// Not currently on a literal
  23. /// </summary>
  24. None,
  25. /// <summary>
  26. /// A string literal
  27. /// </summary>
  28. String,
  29. /// <summary>
  30. /// The value `null`
  31. /// </summary>
  32. Null,
  33. /// <summary>
  34. /// The value `true`
  35. /// </summary>
  36. True,
  37. /// <summary>
  38. /// The value `false`
  39. /// </summary>
  40. False,
  41. /// <summary>
  42. /// A signed integer
  43. /// </summary>
  44. SignedInteger,
  45. /// <summary>
  46. /// An unsigned integer
  47. /// </summary>
  48. UnsignedInteger,
  49. /// <summary>
  50. /// A floating point value
  51. /// </summary>
  52. FloatingPoint,
  53. }
  54. }