TokenKind.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #region Copyright and License
  2. //
  3. // Fizzler - CSS Selector Engine for Microsoft .NET Framework
  4. // Copyright (c) 2009 Atif Aziz, Colin Ramsay. All rights reserved.
  5. //
  6. // This library is free software; you can redistribute it and/or modify it under
  7. // the terms of the GNU Lesser General Public License as published by the Free
  8. // Software Foundation; either version 3 of the License, or (at your option)
  9. // any later version.
  10. //
  11. // This library is distributed in the hope that it will be useful, but WITHOUT
  12. // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  14. // details.
  15. //
  16. // You should have received a copy of the GNU Lesser General Public License
  17. // along with this library; if not, write to the Free Software Foundation, Inc.,
  18. // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. //
  20. #endregion
  21. #pragma warning disable
  22. namespace Fizzler
  23. {
  24. /// <summary>
  25. /// Represents the classification of a token.
  26. /// </summary>
  27. public enum TokenKind
  28. {
  29. /// <summary>
  30. /// Represents end of input/file/stream
  31. /// </summary>
  32. Eoi,
  33. /// <summary>
  34. /// Represents {ident}
  35. /// </summary>
  36. Ident,
  37. /// <summary>
  38. /// Represents "#" {name}
  39. /// </summary>
  40. Hash,
  41. /// <summary>
  42. /// Represents "~="
  43. /// </summary>
  44. Includes,
  45. /// <summary>
  46. /// Represents "|="
  47. /// </summary>
  48. DashMatch,
  49. /// <summary>
  50. /// Represents "^="
  51. /// </summary>
  52. PrefixMatch,
  53. /// <summary>
  54. /// Represents "$="
  55. /// </summary>
  56. SuffixMatch,
  57. /// <summary>
  58. /// Represents "*="
  59. /// </summary>
  60. SubstringMatch,
  61. /// <summary>
  62. /// Represents {string}
  63. /// </summary>
  64. String,
  65. /// <summary>
  66. /// Represents S* "+"
  67. /// </summary>
  68. Plus,
  69. /// <summary>
  70. /// Represents S* ">"
  71. /// </summary>
  72. Greater,
  73. /// <summary>
  74. /// Represents [ \t\r\n\f]+
  75. /// </summary>
  76. WhiteSpace,
  77. /// <summary>
  78. /// Represents {ident} ")"
  79. /// </summary>
  80. Function,
  81. /// <summary>
  82. /// Represents [0-9]+
  83. /// </summary>
  84. Integer,
  85. /// <summary>
  86. /// Represents S* "~"
  87. /// </summary>
  88. Tilde,
  89. /// <summary>
  90. /// Represents an arbitrary character
  91. /// </summary>
  92. Char,
  93. }
  94. }
  95. #pragma warning restore