mesa: additional vec4 constructor
[mesa.git] / src / mesa / shader / slang / library / slang_pp_directives_syn.h
1
2 /* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED FROM THE .syn FILE */
3
4 ".syntax source;\n"
5 ".emtcode ESCAPE_TOKEN 0\n"
6 ".emtcode TOKEN_END 0\n"
7 ".emtcode TOKEN_DEFINE 1\n"
8 ".emtcode TOKEN_UNDEF 2\n"
9 ".emtcode TOKEN_IF 3\n"
10 ".emtcode TOKEN_ELSE 4\n"
11 ".emtcode TOKEN_ELIF 5\n"
12 ".emtcode TOKEN_ENDIF 6\n"
13 ".emtcode TOKEN_ERROR 7\n"
14 ".emtcode TOKEN_PRAGMA 8\n"
15 ".emtcode TOKEN_EXTENSION 9\n"
16 ".emtcode TOKEN_LINE 10\n"
17 ".emtcode PARAM_END 0\n"
18 ".emtcode PARAM_PARAMETER 1\n"
19 ".emtcode BEHAVIOR_REQUIRE 1\n"
20 ".emtcode BEHAVIOR_ENABLE 2\n"
21 ".emtcode BEHAVIOR_WARN 3\n"
22 ".emtcode BEHAVIOR_DISABLE 4\n"
23 "source\n"
24 " optional_directive .and .loop source_element .and '\\0' .emit ESCAPE_TOKEN .emit TOKEN_END;\n"
25 "source_element\n"
26 " c_style_comment_block .or cpp_style_comment_block .or new_line_directive .or source_token;\n"
27 "c_style_comment_block\n"
28 " '/' .and '*' .and c_style_comment_rest .and .true .emit ' ';\n"
29 "c_style_comment_rest\n"
30 " .loop c_style_comment_body .and c_style_comment_end;\n"
31 "c_style_comment_body\n"
32 " c_style_comment_char_nostar .or c_style_comment_char_star_noslashstar;\n"
33 "c_style_comment_char_nostar\n"
34 " new_line .or '\\x2B'-'\\xFF' .or '\\x01'-'\\x29';\n"
35 "c_style_comment_char_star_noslashstar\n"
36 " '*' .and c_style_comment_char_star_noslashstar_1;\n"
37 "c_style_comment_char_star_noslashstar_1\n"
38 " c_style_comment_char_noslashstar .or c_style_comment_char_star_noslashstar;\n"
39 "c_style_comment_char_noslashstar\n"
40 " new_line .or '\\x30'-'\\xFF' .or '\\x01'-'\\x29' .or '\\x2B'-'\\x2E';\n"
41 "c_style_comment_end\n"
42 " '*' .and .loop c_style_comment_char_star .and '/';\n"
43 "c_style_comment_char_star\n"
44 " '*';\n"
45 "cpp_style_comment_block\n"
46 " '/' .and '/' .and cpp_style_comment_block_1;\n"
47 "cpp_style_comment_block_1\n"
48 " cpp_style_comment_block_2 .or cpp_style_comment_block_3;\n"
49 "cpp_style_comment_block_2\n"
50 " .loop cpp_style_comment_char .and new_line_directive;\n"
51 "cpp_style_comment_block_3\n"
52 " .loop cpp_style_comment_char;\n"
53 "cpp_style_comment_char\n"
54 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
55 "new_line_directive\n"
56 " new_line .and optional_directive;\n"
57 "new_line\n"
58 " generic_new_line .emit '\\n';\n"
59 "generic_new_line\n"
60 " carriage_return_line_feed .or line_feed_carriage_return .or '\\n' .or '\\r';\n"
61 "carriage_return_line_feed\n"
62 " '\\r' .and '\\n';\n"
63 "line_feed_carriage_return\n"
64 " '\\n' .and '\\r';\n"
65 "optional_directive\n"
66 " directive .emit ESCAPE_TOKEN .or .true;\n"
67 "directive\n"
68 " dir_define .emit TOKEN_DEFINE .or\n"
69 " dir_undef .emit TOKEN_UNDEF .or\n"
70 " dir_if .emit TOKEN_IF .or\n"
71 " dir_ifdef .emit TOKEN_IF .emit 'd' .emit 'e' .emit 'f' .emit 'i' .emit 'n' .emit 'e' .emit 'd'\n"
72 " .emit ' ' .or\n"
73 " dir_ifndef .emit TOKEN_IF .emit '!' .emit 'd' .emit 'e' .emit 'f' .emit 'i' .emit 'n' .emit 'e'\n"
74 " .emit 'd' .emit ' ' .or\n"
75 " dir_else .emit TOKEN_ELSE .or\n"
76 " dir_elif .emit TOKEN_ELIF .or\n"
77 " dir_endif .emit TOKEN_ENDIF .or\n"
78 " dir_ext .emit TOKEN_EXTENSION .or\n"
79 " dir_line .emit TOKEN_LINE;\n"
80 "dir_define\n"
81 " optional_space .and '#' .and optional_space .and \"define\" .and symbol .and opt_parameters .and\n"
82 " definition;\n"
83 "dir_undef\n"
84 " optional_space .and '#' .and optional_space .and \"undef\" .and symbol;\n"
85 "dir_if\n"
86 " optional_space .and '#' .and optional_space .and \"if\" .and expression;\n"
87 "dir_ifdef\n"
88 " optional_space .and '#' .and optional_space .and \"ifdef\" .and symbol;\n"
89 "dir_ifndef\n"
90 " optional_space .and '#' .and optional_space .and \"ifndef\" .and symbol;\n"
91 "dir_else\n"
92 " optional_space .and '#' .and optional_space .and \"else\";\n"
93 "dir_elif\n"
94 " optional_space .and '#' .and optional_space .and \"elif\" .and expression;\n"
95 "dir_endif\n"
96 " optional_space .and '#' .and optional_space .and \"endif\";\n"
97 "dir_ext\n"
98 " optional_space .and '#' .and optional_space .and \"extension\" .and space .and extension_name .and\n"
99 " optional_space .and ':' .and optional_space .and extension_behavior;\n"
100 "dir_line\n"
101 " optional_space .and '#' .and optional_space .and \"line\" .and expression;\n"
102 "symbol\n"
103 " space .and symbol_character .emit * .and .loop symbol_character2 .emit * .and .true .emit '\\0';\n"
104 "opt_parameters\n"
105 " parameters .or .true .emit PARAM_END;\n"
106 "parameters\n"
107 " '(' .and parameters_1 .and optional_space .and ')' .emit PARAM_END;\n"
108 "parameters_1\n"
109 " parameters_2 .or .true;\n"
110 "parameters_2\n"
111 " parameter .emit PARAM_PARAMETER .and .loop parameters_3;\n"
112 "parameters_3\n"
113 " optional_space .and ',' .and parameter .emit PARAM_PARAMETER;\n"
114 "parameter\n"
115 " optional_space .and symbol_character .emit * .and .loop symbol_character2 .emit * .and\n"
116 " .true .emit '\\0';\n"
117 "definition\n"
118 " .loop definition_character .emit * .and .true .emit '\\0';\n"
119 "definition_character\n"
120 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
121 "expression\n"
122 " expression_element .and .loop expression_element .and .true .emit '\\0';\n"
123 "expression_element\n"
124 " expression_character .emit *;\n"
125 "expression_character\n"
126 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
127 "extension_name\n"
128 " symbol_character .emit * .and .loop symbol_character2 .emit * .and .true .emit '\\0';\n"
129 "extension_behavior\n"
130 " \"require\" .emit BEHAVIOR_REQUIRE .or\n"
131 " \"enable\" .emit BEHAVIOR_ENABLE .or\n"
132 " \"warn\" .emit BEHAVIOR_WARN .or\n"
133 " \"disable\" .emit BEHAVIOR_DISABLE;\n"
134 "optional_space\n"
135 " .loop single_space;\n"
136 "space\n"
137 " single_space .and .loop single_space;\n"
138 "single_space\n"
139 " ' ' .or '\\t';\n"
140 "source_token\n"
141 " space .emit ' ' .or complex_token .or source_token_1;\n"
142 "source_token_1\n"
143 " simple_token .emit ' ' .and .true .emit ' ';\n"
144 "complex_token\n"
145 " identifier .or number;\n"
146 "simple_token\n"
147 " increment .or decrement .or lequal .or gequal .or equal .or nequal .or and .or xor .or or .or\n"
148 " addto .or subtractfrom .or multiplyto .or divideto .or other;\n"
149 "identifier\n"
150 " identifier_char1 .emit * .and .loop identifier_char2 .emit *;\n"
151 "identifier_char1\n"
152 " 'a'-'z' .or 'A'-'Z' .or '_';\n"
153 "identifier_char2\n"
154 " 'a'-'z' .or 'A'-'Z' .or '0'-'9' .or '_';\n"
155 "number\n"
156 " float .or integer;\n"
157 "digit_oct\n"
158 " '0'-'7';\n"
159 "digit_dec\n"
160 " '0'-'9';\n"
161 "digit_hex\n"
162 " '0'-'9' .or 'A'-'F' .or 'a'-'f';\n"
163 "float\n"
164 " float_1 .or float_2;\n"
165 "float_1\n"
166 " float_fractional_constant .and float_optional_exponent_part;\n"
167 "float_2\n"
168 " float_digit_sequence .and float_exponent_part;\n"
169 "float_fractional_constant\n"
170 " float_fractional_constant_1 .or float_fractional_constant_2 .or float_fractional_constant_3;\n"
171 "float_fractional_constant_1\n"
172 " float_digit_sequence .and '.' .emit '.' .and float_digit_sequence;\n"
173 "float_fractional_constant_2\n"
174 " float_digit_sequence .and '.' .emit '.';\n"
175 "float_fractional_constant_3\n"
176 " '.' .emit '.' .and float_digit_sequence;\n"
177 "float_optional_exponent_part\n"
178 " float_exponent_part .or .true;\n"
179 "float_digit_sequence\n"
180 " digit_dec .emit * .and .loop digit_dec .emit *;\n"
181 "float_exponent_part\n"
182 " float_exponent_part_1 .or float_exponent_part_2;\n"
183 "float_exponent_part_1\n"
184 " 'e' .emit 'e' .and float_optional_sign .and float_digit_sequence;\n"
185 "float_exponent_part_2\n"
186 " 'E' .emit 'E' .and float_optional_sign .and float_digit_sequence;\n"
187 "float_optional_sign\n"
188 " '+' .emit '+' .or '-' .emit '-' .or .true;\n"
189 "integer\n"
190 " integer_hex .or integer_oct .or integer_dec;\n"
191 "integer_hex\n"
192 " '0' .emit '0' .and integer_hex_1 .emit * .and digit_hex .emit * .and\n"
193 " .loop digit_hex .emit *;\n"
194 "integer_hex_1\n"
195 " 'x' .or 'X';\n"
196 "integer_oct\n"
197 " '0' .emit '0' .and .loop digit_oct .emit *;\n"
198 "integer_dec\n"
199 " digit_dec .emit * .and .loop digit_dec .emit *;\n"
200 "increment\n"
201 " '+' .emit * .and '+' .emit *;\n"
202 "decrement\n"
203 " '-' .emit * .and '-' .emit *;\n"
204 "lequal\n"
205 " '<' .emit * .and '=' .emit *;\n"
206 "gequal\n"
207 " '>' .emit * .and '=' .emit *;\n"
208 "equal\n"
209 " '=' .emit * .and '=' .emit *;\n"
210 "nequal\n"
211 " '!' .emit * .and '=' .emit *;\n"
212 "and\n"
213 " '&' .emit * .and '&' .emit *;\n"
214 "xor\n"
215 " '^' .emit * .and '^' .emit *;\n"
216 "or\n"
217 " '|' .emit * .and '|' .emit *;\n"
218 "addto\n"
219 " '+' .emit * .and '=' .emit *;\n"
220 "subtractfrom\n"
221 " '-' .emit * .and '=' .emit *;\n"
222 "multiplyto\n"
223 " '*' .emit * .and '=' .emit *;\n"
224 "divideto\n"
225 " '/' .emit * .and '=' .emit *;\n"
226 "other\n"
227 " '\\x24'-'\\xFF' .emit * .or '\\x01'-'\\x22' .emit *;\n"
228 "symbol_character\n"
229 " 'A'-'Z' .or 'a'-'z' .or '_';\n"
230 "symbol_character2\n"
231 " 'A'-'Z' .or 'a'-'z' .or '0'-'9' .or '_';\n"
232 ".string string_lexer;\n"
233 "string_lexer\n"
234 " lex_first_identifier_character .and .loop lex_next_identifier_character;\n"
235 "lex_first_identifier_character\n"
236 " 'a'-'z' .or 'A'-'Z' .or '_';\n"
237 "lex_next_identifier_character\n"
238 " 'a'-'z' .or 'A'-'Z' .or '0'-'9' .or '_';\n"
239 ""