| 1 |
".syntax version_directive;\n" |
| 2 |
"version_directive\n" |
| 3 |
" version_directive_1 .and .loop version_directive_2;\n" |
| 4 |
"version_directive_1\n" |
| 5 |
" prior_optional_spaces .and optional_version_directive .and .true .emit $;\n" |
| 6 |
"version_directive_2\n" |
| 7 |
" prior_optional_spaces .and version_directive_body .and .true .emit $;\n" |
| 8 |
"optional_version_directive\n" |
| 9 |
" version_directive_body .or .true .emit 10 .emit 1;\n" |
| 10 |
"version_directive_body\n" |
| 11 |
" '#' .and optional_space .and \"version\" .and space .and version_number .and optional_space .and\n" |
| 12 |
" new_line;\n" |
| 13 |
"version_number\n" |
| 14 |
" version_number_110;\n" |
| 15 |
"version_number_110\n" |
| 16 |
" leading_zeroes .and \"110\" .emit 10 .emit 1;\n" |
| 17 |
"leading_zeroes\n" |
| 18 |
" .loop zero;\n" |
| 19 |
"zero\n" |
| 20 |
" '0';\n" |
| 21 |
"space\n" |
| 22 |
" single_space .and .loop single_space;\n" |
| 23 |
"optional_space\n" |
| 24 |
" .loop single_space;\n" |
| 25 |
"single_space\n" |
| 26 |
" ' ' .or '\\t';\n" |
| 27 |
"prior_optional_spaces\n" |
| 28 |
" .loop prior_space;\n" |
| 29 |
"prior_space\n" |
| 30 |
" c_style_comment_block .or cpp_style_comment_block .or space .or new_line;\n" |
| 31 |
"c_style_comment_block\n" |
| 32 |
" '/' .and '*' .and c_style_comment_rest;\n" |
| 33 |
"c_style_comment_rest\n" |
| 34 |
" .loop c_style_comment_char_no_star .and c_style_comment_rest_1;\n" |
| 35 |
"c_style_comment_rest_1\n" |
| 36 |
" c_style_comment_end .or c_style_comment_rest_2;\n" |
| 37 |
"c_style_comment_rest_2\n" |
| 38 |
" '*' .and c_style_comment_rest;\n" |
| 39 |
"c_style_comment_char_no_star\n" |
| 40 |
" '\\x2B'-'\\xFF' .or '\\x01'-'\\x29';\n" |
| 41 |
"c_style_comment_end\n" |
| 42 |
" '*' .and '/';\n" |
| 43 |
"cpp_style_comment_block\n" |
| 44 |
" '/' .and '/' .and cpp_style_comment_block_1;\n" |
| 45 |
"cpp_style_comment_block_1\n" |
| 46 |
" cpp_style_comment_block_2 .or cpp_style_comment_block_3;\n" |
| 47 |
"cpp_style_comment_block_2\n" |
| 48 |
" .loop cpp_style_comment_char .and new_line;\n" |
| 49 |
"cpp_style_comment_block_3\n" |
| 50 |
" .loop cpp_style_comment_char;\n" |
| 51 |
"cpp_style_comment_char\n" |
| 52 |
" '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n" |
| 53 |
"new_line\n" |
| 54 |
" cr_lf .or lf_cr .or '\\n' .or '\\r';\n" |
| 55 |
"cr_lf\n" |
| 56 |
" '\\r' .and '\\n';\n" |
| 57 |
"lf_cr\n" |
| 58 |
" '\\n' .and '\\r';\n" |
| 59 |
".string __string_filter;\n" |
| 60 |
"__string_filter\n" |
| 61 |
" .loop __identifier_char;\n" |
| 62 |
"__identifier_char\n" |
| 63 |
" 'a'-'z' .or 'A'-'Z' .or '_' .or '0'-'9';\n" |
| 64 |
"" |