分类: Java
2009-06-09 20:09:43
::= | ||
"PARSER_BEGIN" "(" |
||
java_compilation_unit | ||
"PARSER_END" "(" |
||
( )* | ||
::= | [ "" "{" ( )* "}" ] |
::= | "LOOKAHEAD" "=" java_integer_literal ";" | |
| | "CHOICE_AMBIGUITY_CHECK" "=" java_integer_literal ";" | |
| | "OTHER_AMBIGUITY_CHECK" "=" java_integer_literal ";" | |
| | "STATIC" "=" java_boolean_literal ";" | |
| | "DEBUG_PARSER" "=" java_boolean_literal ";" | |
| | "DEBUG_LOOKAHEAD" "=" java_boolean_literal ";" | |
| | "DEBUG_TOKEN_MANAGER" "=" java_boolean_literal ";" | |
| | "ERROR_REPORTING" "=" java_boolean_literal ";" | |
| | "JAVA_UNICODE_ESCAPE" "=" java_boolean_literal ";" | |
| | "UNICODE_INPUT" "=" java_boolean_literal ";" | |
| | "IGNORE_CASE" "=" java_boolean_literal ";" | |
| | "USER_TOKEN_MANAGER" "=" java_boolean_literal ";" | |
| | "USER_CHAR_STREAM" "=" java_boolean_literal ";" | |
| | "BUILD_PARSER" "=" java_boolean_literal ";" | |
| | "BUILD_TOKEN_MANAGER" "=" java_boolean_literal ";" | |
| | "TOKEN_EXTENDS" "=" java_string_literal ";" | |
| | "TOKEN_FACTORY" "=" java_string_literal ";" | |
| | "TOKEN_MANAGER_USES_PARSER" "=" java_boolean_literal ";" | |
| | "SANITY_CHECK" "=" java_boolean_literal ";" | |
| | "FORCE_LA_CHECK" "=" java_boolean_literal ";" | |
| | "COMMON_TOKEN_ACTION" "=" java_boolean_literal ";" | |
| | "CACHE_TOKENS" "=" java_boolean_literal ";" | |
| | "OUTPUT_DIRECTORY" "=" java_string_literal ";" |
::= | ||
| | ||
| | ||
| |
::= | "" | |
java_access_modifier java_return_type java_identifier "(" java_parameter_list ")" | ||
java_block |
::= | [ ] | |
[ "[" "IGNORE_CASE" "]" ] ":" | ||
"{" ( "|" )* "}" |
::= | java_access_modifier java_return_type java_identifier "(" java_parameter_list ")" ":" | |
java_block | ||
"{" "}" |
::= | "" ":" java_block |