?? asc.y
字號:
| if_statement { } | switch_statement { } | do_statement ';' { } | while_statement { } | for_statement { } | with_statement { } | continue_statement ';' { } | break_statement ';' { } | return_statement ';' { } | throw_statement ';' { } | try_statement { } | catch_statement { } | finally_statement { };substatement: empty_statement { } | statement { } | simple_variable_definition ';' { } | attributes '{' '}' { } | attributes '{' substatement_list '}' { };substatement_list: substatement { } | substatement_list substatement { };empty_statement: ';' { };expression_statement: list_expression { };super_statement: SUPER arguments { };block: '{' directives '}' { } | '{' '}' { };labeled_statement: IDENTIFIER ':' substatement { };goto_statement: GOTO IDENTIFIER { };if_statement: IF paren_list_expression substatement { } | IF paren_list_expression substatement ELSE substatement { };switch_statement: SWITCH paren_list_expression '{' case_elements '}' { };case_elements: /* EMPTY */ { } | case_label { } | case_label case_elements_prefix case_element { };case_elements_prefix: /* EMPTY */ { } | case_elements_prefix case_element { };case_element: directive { } | case_label { };case_label: CASE list_expression ':' { } | DEFAULT ':' { };do_statement: DO substatement WHILE paren_list_expression { };while_statement: WHILE paren_list_expression substatement { };for_statement: FOR '(' for_initializer ';' optional_expression ';' optional_expression ')' substatement { } | FOR '(' for_in_binding FOR_IN list_expression ')' substatement { };for_initializer: /* EMPTY */ { } | list_expression { } | variable_definition { } | attributes variable_definition { };for_in_binding: postfix_expression { } | variable_definition_kind variable_binding { } | attributes variable_definition_kind variable_binding { };optional_expression: list_expression { } | /* EMPTY */ { };with_statement: WITH paren_list_expression substatement { };continue_statement: CONTINUE { } | CONTINUE IDENTIFIER { };break_statement: BREAK { } | BREAK IDENTIFIER { };return_statement: RETURN { } | RETURN list_expression { };throw_statement: THROW list_expression { };try_statement: TRY block { };catch_statement: CATCH '(' parameter ')' block { };finally_statement: FINALLY block { };directive: empty_statement { } | statement { } | annotatable_directive { } | attributes annotatable_directive { } | attributes block { } | pragma ';' { };annotatable_directive: variable_definition ';' { } | function_definition { } | class_definition { } | interface_definition { } | namespace_definition ';' { } | import_directive ';' { } | use_directive ';' { };directives: directive { } | directives directive { };attributes: attribute { } | attribute_combination { };attribute_combination: attribute attributes { };attribute: attribute_expression { } | TRUE { } | FALSE { } | reserved_namespace { };use_directive: USE NAMESPACE paren_list_expression { };import_directive: IMPORT package_name { } | IMPORT IDENTIFIER '=' package_name { };pragma: USE pragma_items { };pragma_items: pragma_item { } | pragma_items ',' pragma_item { };pragma_item: pragma_expr { } | pragma_expr '?' { };pragma_expr: IDENTIFIER { } | IDENTIFIER '(' pragma_argument ')' { };pragma_argument: TRUE { } | FALSE { } | NUMBER { } | '-' NUMBER { } | '-' NEGATED_MIN_LONG { } | STRING { };variable_definition: variable_definition_kind variable_binding_list { };variable_definition_kind: VAR { } | CONST { };variable_binding_list: variable_binding { } | variable_binding_list ',' variable_binding { };variable_binding: typed_identifier { } | typed_identifier variable_initialisation { };variable_initialisation: '=' variable_initializer { };variable_initializer: assignment_expression { } | attribute_combination { };typed_identifier: IDENTIFIER { } | IDENTIFIER ':' type_expression { };simple_variable_definition: VAR untyped_variable_binding_list { };untyped_variable_binding_list: untyped_variable_binding { } | untyped_variable_binding_list ',' untyped_variable_binding { };untyped_variable_binding: IDENTIFIER { } | IDENTIFIER variable_initialisation { };function_definition: FUNCTION function_name function_common { };function_name: IDENTIFIER { } | IDENTIFIER IDENTIFIER // 1st identifier needs to be GET or SET { } | STRING // for operators override { };function_common: '(' parameters ')' block { } | '(' parameters ')' result block { };parameters: /* EMPTY */ { } | nonempty_parameters { };nonempty_parameters: parameter_init { } | parameter_init ',' nonempty_parameters { } | rest_parameter { };parameter: parameter_attributes typed_identifier { };parameter_attributes: /* EMPTY */ { } | CONST { };parameter_init: parameter { } | parameter '=' assignment_expression { };rest_parameter: ELIPSIS { } | ELIPSIS parameter_attributes IDENTIFIER { };result: ':' type_expression { };interface_definition: INTERFACE IDENTIFIER extends_list block { } | INTERFACE IDENTIFIER ';' { };extends_list: /* EMPTY */ { } | EXTENDS type_expression_list { };type_expression_list: type_expression { } | type_expression_list ',' type_expression { };class_definition: CLASS IDENTIFIER inheritance block { };inheritance: /* EMPTY */ { } | EXTENDS type_expression { } | IMPLEMENTS type_expression_list { } | EXTENDS type_expression IMPLEMENTS type_expression_list { };namespace_definition: NAMESPACE IDENTIFIER { };program: directives { } | package_definition program { };package_definition: PACKAGE package_name_opt block { };package_name_opt: /* EMPTY */ { } | package_name { };package_name: STRING { } | package_identifiers { };package_identifiers: IDENTIFIER { } | package_identifiers '.' IDENTIFIER { };%%void yyerror(const char *msg){ printf("YACC ERROR at line #%d in file \"%s\": %s.\n", yylloc.first_line, lex_filename, msg);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -