2 /* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED FROM THE .syn FILE */
12 ".emtcode ESCAPE_TOKEN 0
\n"
15 ".emtcode TOKEN_END 0
\n"
16 ".emtcode TOKEN_DEFINE 1
\n"
17 ".emtcode TOKEN_UNDEF 2
\n"
18 ".emtcode TOKEN_IF 3
\n"
19 ".emtcode TOKEN_ELSE 4
\n"
20 ".emtcode TOKEN_ELIF 5
\n"
21 ".emtcode TOKEN_ENDIF 6
\n"
22 ".emtcode TOKEN_ERROR 7
\n"
23 ".emtcode TOKEN_PRAGMA 8
\n"
24 ".emtcode TOKEN_EXTENSION 9
\n"
25 ".emtcode TOKEN_LINE 10
\n"
28 ".emtcode PARAM_END 0
\n"
29 ".emtcode PARAM_PARAMETER 1
\n"
32 ".emtcode BEHAVIOR_REQUIRE 1
\n"
33 ".emtcode BEHAVIOR_ENABLE 2
\n"
34 ".emtcode BEHAVIOR_WARN 3
\n"
35 ".emtcode BEHAVIOR_DISABLE 4
\n"
38 " optional_directive .and .loop source_element .and '\\0' .emit ESCAPE_TOKEN .emit TOKEN_END;
\n"
41 " c_style_comment_block .or cpp_style_comment_block .or new_line_directive .or source_token;
\n"
43 "c_style_comment_block
\n"
44 " '/' .and '*' .and c_style_comment_rest .and .true .emit ' ';
\n"
46 "c_style_comment_rest
\n"
47 " .loop c_style_comment_body .and c_style_comment_end;
\n"
49 "c_style_comment_body
\n"
50 " c_style_comment_char_nostar .or c_style_comment_char_star_noslashstar;
\n"
52 "c_style_comment_char_nostar
\n"
53 " new_line .or '\\x2B'-'\\xFF' .or '\\x01'-'\\x29';
\n"
55 "c_style_comment_char_star_noslashstar
\n"
56 " '*' .and c_style_comment_char_star_noslashstar_1;
\n"
57 "c_style_comment_char_star_noslashstar_1
\n"
58 " c_style_comment_char_noslashstar .or c_style_comment_char_star_noslashstar;
\n"
60 "c_style_comment_char_noslashstar
\n"
61 " new_line .or '\\x30'-'\\xFF' .or '\\x01'-'\\x29' .or '\\x2B'-'\\x2E';
\n"
63 "c_style_comment_end
\n"
64 " '*' .and .loop c_style_comment_char_star .and '/';
\n"
66 "c_style_comment_char_star
\n"
69 "cpp_style_comment_block
\n"
70 " '/' .and '/' .and cpp_style_comment_block_1;
\n"
71 "cpp_style_comment_block_1
\n"
72 " cpp_style_comment_block_2 .or cpp_style_comment_block_3;
\n"
73 "cpp_style_comment_block_2
\n"
74 " .loop cpp_style_comment_char .and new_line_directive;
\n"
75 "cpp_style_comment_block_3
\n"
76 " .loop cpp_style_comment_char;
\n"
78 "cpp_style_comment_char
\n"
79 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';
\n"
81 "new_line_directive
\n"
82 " new_line .and optional_directive;
\n"
85 " generic_new_line .emit '\\n';
\n"
88 " carriage_return_line_feed .or line_feed_carriage_return .or '\\n' .or '\\r';
\n"
90 "carriage_return_line_feed
\n"
91 " '\\r' .and '\\n';
\n"
93 "line_feed_carriage_return
\n"
94 " '\\n' .and '\\r';
\n"
96 "optional_directive
\n"
97 " directive .emit ESCAPE_TOKEN .or .true;
\n"
100 " dir_define .emit TOKEN_DEFINE .or
\n"
101 " dir_undef .emit TOKEN_UNDEF .or
\n"
102 " dir_if .emit TOKEN_IF .or
\n"
103 " dir_ifdef .emit TOKEN_IF .emit 'd' .emit 'e' .emit 'f' .emit 'i' .emit 'n' .emit 'e' .emit 'd'
\n"
105 " dir_ifndef .emit TOKEN_IF .emit '!' .emit 'd' .emit 'e' .emit 'f' .emit 'i' .emit 'n' .emit 'e'
\n"
106 " .emit 'd' .emit ' ' .or
\n"
107 " dir_else .emit TOKEN_ELSE .or
\n"
108 " dir_elif .emit TOKEN_ELIF .or
\n"
109 " dir_endif .emit TOKEN_ENDIF .or
\n"
110 " dir_ext .emit TOKEN_EXTENSION .or
\n"
111 " dir_line .emit TOKEN_LINE;
\n"
114 " optional_space .and '#' .and optional_space .and \"define\" .and symbol .and opt_parameters .and
\n"
118 " optional_space .and '#' .and optional_space .and \"undef\" .and symbol;
\n"
121 " optional_space .and '#' .and optional_space .and \"if\" .and expression;
\n"
124 " optional_space .and '#' .and optional_space .and \"ifdef\" .and symbol;
\n"
127 " optional_space .and '#' .and optional_space .and \"ifndef\" .and symbol;
\n"
130 " optional_space .and '#' .and optional_space .and \"else\";
\n"
133 " optional_space .and '#' .and optional_space .and \"elif\" .and expression;
\n"
136 " optional_space .and '#' .and optional_space .and \"endif\";
\n"
139 " optional_space .and '#' .and optional_space .and \"extension\" .and space .and extension_name .and
\n"
140 " optional_space .and ':' .and optional_space .and extension_behavior;
\n"
143 " optional_space .and '#' .and optional_space .and \"line\" .and expression;
\n"
146 " space .and symbol_character .emit * .and .loop symbol_character2 .emit * .and .true .emit '\\0';
\n"
149 " parameters .or .true .emit PARAM_END;
\n"
152 " '(' .and parameters_1 .and optional_space .and ')' .emit PARAM_END;
\n"
154 " parameters_2 .or .true;
\n"
156 " parameter .emit PARAM_PARAMETER .and .loop parameters_3;
\n"
158 " optional_space .and ',' .and parameter .emit PARAM_PARAMETER;
\n"
161 " optional_space .and symbol_character .emit * .and .loop symbol_character2 .emit * .and
\n"
162 " .true .emit '\\0';
\n"
165 " .loop definition_character .emit * .and .true .emit '\\0';
\n"
167 "definition_character
\n"
168 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';
\n"
171 " expression_element .and .loop expression_element .and .true .emit '\\0';
\n"
173 "expression_element
\n"
174 " expression_character .emit *;
\n"
176 "expression_character
\n"
177 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';
\n"
180 " symbol_character .emit * .and .loop symbol_character2 .emit * .and .true .emit '\\0';
\n"
182 "extension_behavior
\n"
183 " \"require\" .emit BEHAVIOR_REQUIRE .or
\n"
184 " \"enable\" .emit BEHAVIOR_ENABLE .or
\n"
185 " \"warn\" .emit BEHAVIOR_WARN .or
\n"
186 " \"disable\" .emit BEHAVIOR_DISABLE;
\n"
189 " .loop single_space;
\n"
192 " single_space .and .loop single_space;
\n"
198 " space .emit ' ' .or complex_token .or source_token_1;
\n"
200 " simple_token .emit ' ' .and .true .emit ' ';
\n"
205 " identifier .or number;
\n"
208 " increment .or decrement .or lequal .or gequal .or equal .or nequal .or and .or xor .or or .or
\n"
209 " addto .or subtractfrom .or multiplyto .or divideto .or other;
\n"
212 " identifier_char1 .emit * .and .loop identifier_char2 .emit *;
\n"
213 "identifier_char1
\n"
214 " 'a'-'z' .or 'A'-'Z' .or '_';
\n"
215 "identifier_char2
\n"
216 " 'a'-'z' .or 'A'-'Z' .or '0'-'9' .or '_';
\n"
219 " float .or integer;
\n"
228 " '0'-'9' .or 'A'-'F' .or 'a'-'f';
\n"
231 " float_1 .or float_2;
\n"
233 " float_fractional_constant .and float_optional_exponent_part;
\n"
235 " float_digit_sequence .and float_exponent_part;
\n"
237 "float_fractional_constant
\n"
238 " float_fractional_constant_1 .or float_fractional_constant_2 .or float_fractional_constant_3;
\n"
239 "float_fractional_constant_1
\n"
240 " float_digit_sequence .and '.' .emit '.' .and float_digit_sequence;
\n"
241 "float_fractional_constant_2
\n"
242 " float_digit_sequence .and '.' .emit '.';
\n"
243 "float_fractional_constant_3
\n"
244 " '.' .emit '.' .and float_digit_sequence;
\n"
246 "float_optional_exponent_part
\n"
247 " float_exponent_part .or .true;
\n"
249 "float_digit_sequence
\n"
250 " digit_dec .emit * .and .loop digit_dec .emit *;
\n"
252 "float_exponent_part
\n"
253 " float_exponent_part_1 .or float_exponent_part_2;
\n"
254 "float_exponent_part_1
\n"
255 " 'e' .emit 'e' .and float_optional_sign .and float_digit_sequence;
\n"
256 "float_exponent_part_2
\n"
257 " 'E' .emit 'E' .and float_optional_sign .and float_digit_sequence;
\n"
259 "float_optional_sign
\n"
260 " '+' .emit '+' .or '-' .emit '-' .or .true;
\n"
263 " integer_hex .or integer_oct .or integer_dec;
\n"
266 " '0' .emit '0' .and integer_hex_1 .emit * .and digit_hex .emit * .and
\n"
267 " .loop digit_hex .emit *;
\n"
272 " '0' .emit '0' .and .loop digit_oct .emit *;
\n"
275 " digit_dec .emit * .and .loop digit_dec .emit *;
\n"
278 " '+' .emit * .and '+' .emit *;
\n"
281 " '-' .emit * .and '-' .emit *;
\n"
284 " '<' .emit * .and '=' .emit *;
\n"
287 " '>' .emit * .and '=' .emit *;
\n"
290 " '=' .emit * .and '=' .emit *;
\n"
293 " '!' .emit * .and '=' .emit *;
\n"
296 " '&' .emit * .and '&' .emit *;
\n"
299 " '^' .emit * .and '^' .emit *;
\n"
302 " '|' .emit * .and '|' .emit *;
\n"
305 " '+' .emit * .and '=' .emit *;
\n"
308 " '-' .emit * .and '=' .emit *;
\n"
311 " '*' .emit * .and '=' .emit *;
\n"
314 " '/' .emit * .and '=' .emit *;
\n"
318 " '\\x24'-'\\xFF' .emit * .or '\\x01'-'\\x22' .emit *;
\n"
320 "symbol_character
\n"
321 " 'A'-'Z' .or 'a'-'z' .or '_';
\n"
323 "symbol_character2
\n"
324 " 'A'-'Z' .or 'a'-'z' .or '0'-'9' .or '_';
\n"
326 ".string string_lexer;
\n"
329 " lex_first_identifier_character .and .loop lex_next_identifier_character;
\n"
331 "lex_first_identifier_character
\n"
332 " 'a'-'z' .or 'A'-'Z' .or '_';
\n"
334 "lex_next_identifier_character
\n"
335 " 'a'-'z' .or 'A'-'Z' .or '0'-'9' .or '_';
\n"