azslLexer.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. // Generated from ../azslLexer.g4 by ANTLR 4.13.2
  2. #pragma once
  3. #include "antlr4-runtime.h"
  4. class azslLexer : public antlr4::Lexer {
  5. public:
  6. enum {
  7. AppendStructuredBuffer = 1, Bool = 2, Bool1 = 3, Bool2 = 4, Bool3 = 5,
  8. Bool4 = 6, Bool1x1 = 7, Bool1x2 = 8, Bool1x3 = 9, Bool1x4 = 10, Bool2x1 = 11,
  9. Bool2x2 = 12, Bool2x3 = 13, Bool2x4 = 14, Bool3x1 = 15, Bool3x2 = 16,
  10. Bool3x3 = 17, Bool3x4 = 18, Bool4x1 = 19, Bool4x2 = 20, Bool4x3 = 21,
  11. Bool4x4 = 22, Buffer = 23, BuiltInTriangleIntersectionAttributes = 24,
  12. ByteAddressBuffer = 25, Break = 26, Case = 27, CBuffer = 28, Centroid = 29,
  13. ConstantBuffer = 30, ConstantBufferCamel = 31, Class = 32, ColumnMajor = 33,
  14. Const = 34, ConsumeStructuredBuffer = 35, Continue = 36, Default = 37,
  15. Discard = 38, Do = 39, Double = 40, Double1 = 41, Double2 = 42, Double3 = 43,
  16. Double4 = 44, Double1x1 = 45, Double1x2 = 46, Double1x3 = 47, Double1x4 = 48,
  17. Double2x1 = 49, Double2x2 = 50, Double2x3 = 51, Double2x4 = 52, Double3x1 = 53,
  18. Double3x2 = 54, Double3x3 = 55, Double3x4 = 56, Double4x1 = 57, Double4x2 = 58,
  19. Double4x3 = 59, Double4x4 = 60, Else = 61, Enum = 62, Export = 63, Extern = 64,
  20. FeedbackTexture2D = 65, FeedbackTexture2DArray = 66, Float = 67, Float1 = 68,
  21. Float2 = 69, Float3 = 70, Float4 = 71, Float1x1 = 72, Float1x2 = 73,
  22. Float1x3 = 74, Float1x4 = 75, Float2x1 = 76, Float2x2 = 77, Float2x3 = 78,
  23. Float2x4 = 79, Float3x1 = 80, Float3x2 = 81, Float3x3 = 82, Float3x4 = 83,
  24. Float4x1 = 84, Float4x2 = 85, Float4x3 = 86, Float4x4 = 87, For = 88,
  25. Groupshared = 89, Globallycoherent = 90, Global = 91, Half = 92, Half1 = 93,
  26. Half2 = 94, Half3 = 95, Half4 = 96, Half1x1 = 97, Half1x2 = 98, Half1x3 = 99,
  27. Half1x4 = 100, Half2x1 = 101, Half2x2 = 102, Half2x3 = 103, Half2x4 = 104,
  28. Half3x1 = 105, Half3x2 = 106, Half3x3 = 107, Half3x4 = 108, Half4x1 = 109,
  29. Half4x2 = 110, Half4x3 = 111, Half4x4 = 112, If = 113, In = 114, Inline = 115,
  30. Rootconstant = 116, Inout = 117, InputPatch = 118, Int = 119, Int16_t = 120,
  31. Int32_t = 121, Int64_t = 122, Int1 = 123, Int2 = 124, Int3 = 125, Int4 = 126,
  32. Int1x1 = 127, Int1x2 = 128, Int1x3 = 129, Int1x4 = 130, Int2x1 = 131,
  33. Int2x2 = 132, Int2x3 = 133, Int2x4 = 134, Int3x1 = 135, Int3x2 = 136,
  34. Int3x3 = 137, Int3x4 = 138, Int4x1 = 139, Int4x2 = 140, Int4x3 = 141,
  35. Int4x4 = 142, Interface = 143, Line_ = 144, LineAdj = 145, Linear = 146,
  36. LineStream = 147, Long = 148, Matrix = 149, Nointerpolation = 150, Noperspective = 151,
  37. Option = 152, Out = 153, OutputPatch = 154, Override = 155, Partial = 156,
  38. Packoffset = 157, Point = 158, PointStream = 159, Precise = 160, RasterizerOrderedBuffer = 161,
  39. RasterizerOrderedByteAddressBuffer = 162, RasterizerOrderedStructuredBuffer = 163,
  40. RasterizerOrderedTexture1D = 164, RasterizerOrderedTexture1DArray = 165,
  41. RasterizerOrderedTexture2D = 166, RasterizerOrderedTexture2DArray = 167,
  42. RasterizerOrderedTexture3D = 168, RayDesc = 169, RaytracingAccelerationStructure = 170,
  43. Register = 171, Return = 172, RowMajor = 173, RWBuffer = 174, RWByteAddressBuffer = 175,
  44. RWStructuredBuffer = 176, RWTexture1D = 177, RWTexture1DArray = 178,
  45. RWTexture2D = 179, RWTexture2DArray = 180, RWTexture3D = 181, Sample = 182,
  46. Sampler = 183, SamplerCapitalS = 184, SamplerComparisonState = 185,
  47. SamplerStateCamel = 186, SamplerState = 187, Shared = 188, SNorm = 189,
  48. Static = 190, Struct = 191, StructuredBuffer = 192, SubpassInput = 193,
  49. SubpassInputMS = 194, Switch = 195, TBuffer = 196, Texture1D = 197,
  50. Texture1DArray = 198, Texture2D = 199, Texture2DArray = 200, Texture2DMS = 201,
  51. Texture2DMSArray = 202, Texture3D = 203, TextureCube = 204, TextureCubeArray = 205,
  52. Triangle = 206, TriangleAdj = 207, TriangleStream = 208, Uniform = 209,
  53. Uint = 210, Uint1 = 211, Uint2 = 212, Uint3 = 213, Uint4 = 214, Uint1x1 = 215,
  54. Uint1x2 = 216, Uint1x3 = 217, Uint1x4 = 218, Uint2x1 = 219, Uint2x2 = 220,
  55. Uint2x3 = 221, Uint2x4 = 222, Uint3x1 = 223, Uint3x2 = 224, Uint3x3 = 225,
  56. Uint3x4 = 226, Uint4x1 = 227, Uint4x2 = 228, Uint4x3 = 229, Uint4x4 = 230,
  57. Uint16_t = 231, Uint32_t = 232, Uint64_t = 233, UNorm = 234, Unsigned = 235,
  58. Dword = 236, Dword1 = 237, Dword2 = 238, Dword3 = 239, Dword4 = 240,
  59. Dword1x1 = 241, Dword1x2 = 242, Dword1x3 = 243, Dword1x4 = 244, Dword2x1 = 245,
  60. Dword2x2 = 246, Dword2x3 = 247, Dword2x4 = 248, Dword3x1 = 249, Dword3x2 = 250,
  61. Dword3x3 = 251, Dword3x4 = 252, Dword4x1 = 253, Dword4x2 = 254, Dword4x3 = 255,
  62. Dword4x4 = 256, Vector = 257, Volatile = 258, Void = 259, While = 260,
  63. StateObjectConfig = 261, LocalRootSignature = 262, GlobalRootSignature = 263,
  64. SubobjectToExportsAssociation = 264, RaytracingShaderConfig = 265, RaytracingPipelineConfig = 266,
  65. RaytracingPipelineConfig1 = 267, TriangleHitGroup = 268, ProceduralPrimitiveHitGroup = 269,
  66. ADDRESS_U = 270, ADDRESS_V = 271, ADDRESS_W = 272, BORDER_COLOR = 273,
  67. MIN_FILTER = 274, MAG_FILTER = 275, MIP_FILTER = 276, MAX_ANISOTROPY = 277,
  68. MAX_LOD = 278, MIN_LOD = 279, MIP_LOD_BIAS = 280, COMPARISON_FUNC = 281,
  69. REDUCTION_TYPE = 282, FILTER_MODE_POINT = 283, FILTER_MODE_LINEAR = 284,
  70. REDUCTION_TYPE_FILTER = 285, REDUCTION_TYPE_COMPARISON = 286, REDUCTION_TYPE_MINIMUM = 287,
  71. REDUCTION_TYPE_MAXIMUM = 288, ADDRESS_MODE_WRAP = 289, ADDRESS_MODE_MIRROR = 290,
  72. ADDRESS_MODE_CLAMP = 291, ADDRESS_MODE_BORDER = 292, ADDRESS_MODE_MIRROR_ONCE = 293,
  73. COMPARISON_FUNCTION_NEVER = 294, COMPARISON_FUNCTION_LESS = 295, COMPARISON_FUNCTION_EQUAL = 296,
  74. COMPARISON_FUNCTION_LESS_EQUAL = 297, COMPARISON_FUNCTION_GREATER = 298,
  75. COMPARISON_FUNCTION_NOT_EQUAL = 299, COMPARISON_FUNCTION_GREATER_EQUAL = 300,
  76. COMPARISON_FUNCTION_ALWAYS = 301, BORDER_COLOR_OPAQUE_BLACK = 302, BORDER_COLOR_TRANSPARENT_BLACK = 303,
  77. BORDER_COLOR_OPAQUE_WHITE = 304, LeftParen = 305, RightParen = 306,
  78. LeftBracket = 307, RightBracket = 308, LeftBrace = 309, RightBrace = 310,
  79. LeftDoubleBracket = 311, Less = 312, LessEqual = 313, Greater = 314,
  80. GreaterEqual = 315, LeftShift = 316, RightShift = 317, Plus = 318, PlusPlus = 319,
  81. Minus = 320, MinusMinus = 321, Star = 322, Div = 323, Mod = 324, And = 325,
  82. Or = 326, AndAnd = 327, OrOr = 328, Caret = 329, Not = 330, Tilde = 331,
  83. Question = 332, Colon = 333, ColonColon = 334, Semi = 335, Comma = 336,
  84. Assign = 337, StarAssign = 338, DivAssign = 339, ModAssign = 340, PlusAssign = 341,
  85. MinusAssign = 342, LeftShiftAssign = 343, RightShiftAssign = 344, AndAssign = 345,
  86. XorAssign = 346, OrAssign = 347, Equal = 348, NotEqual = 349, Dot = 350,
  87. True = 351, False = 352, KW_AssociatedType = 353, KW_TypeAlias = 354,
  88. KW_Typedef = 355, KW_Fundamental = 356, KW_Typeof = 357, FrequencyId = 358,
  89. ShaderVariantFallback = 359, ShaderResourceGroupSemantic = 360, ShaderResourceGroup = 361,
  90. KW_ext_print_message = 362, KW_ext_print_symbol = 363, KW_ext_prtsym_fully_qualified = 364,
  91. KW_ext_prtsym_least_qualified = 365, KW_ext_prtsym_constint_value = 366,
  92. HLSLSemanticStream = 367, HLSLSemanticSystem = 368, Identifier = 369,
  93. IntegerLiteral = 370, FloatLiteral = 371, StringLiteral = 372, PragmaDirective = 373,
  94. LineDirective = 374, Whitespace = 375, Newline = 376, BlockComment = 377,
  95. LineComment = 378
  96. };
  97. enum {
  98. PREPROCESSOR = 2, COMMENTS = 3
  99. };
  100. explicit azslLexer(antlr4::CharStream *input);
  101. ~azslLexer() override;
  102. std::string getGrammarFileName() const override;
  103. const std::vector<std::string>& getRuleNames() const override;
  104. const std::vector<std::string>& getChannelNames() const override;
  105. const std::vector<std::string>& getModeNames() const override;
  106. const antlr4::dfa::Vocabulary& getVocabulary() const override;
  107. antlr4::atn::SerializedATNView getSerializedATN() const override;
  108. const antlr4::atn::ATN& getATN() const override;
  109. // By default the static state used to implement the lexer is lazily initialized during the first
  110. // call to the constructor. You can call this function if you wish to initialize the static state
  111. // ahead of time.
  112. static void initialize();
  113. private:
  114. // Individual action functions triggered by action() above.
  115. // Individual semantic predicate functions triggered by sempred() above.
  116. };