- {
- nondeterministic_parser = true;
- glr_parser = true;
- }
-| "%initial-action {...}"
- {
- muscle_code_grow ("initial_action", $1, @1);
- }
-| "%lex-param {...}" { add_param ("lex_param", $1, @1); }
-| "%locations" { locations_flag = true; }
-| "%name-prefix" "=" string_content { spec_name_prefix = $3; }
-| "%no-lines" { no_lines_flag = true; }
-| "%nondeterministic-parser" { nondeterministic_parser = true; }
-| "%output" "=" string_content { spec_outfile = $3; }
-| "%parse-param {...}" { add_param ("parse_param", $1, @1); }
-| "%pure-parser" { pure_parser = true; }
-| "%skeleton" string_content { skeleton = $2; }
-| "%token-table" { token_table_flag = true; }
-| "%verbose" { report_flag = report_states; }
-| "%yacc" { yacc_flag = true; }
+ {
+ nondeterministic_parser = true;
+ glr_parser = true;
+ }
+| "%initial-action" "{...}"
+ {
+ muscle_code_grow ("initial_action", translate_symbol_action ($2, @2), @2);
+ }
+| "%lex-param" "{...}" { add_param ("lex_param", $2, @2); }
+| "%locations" { locations_flag = true; }
+| "%name-prefix" "=" STRING { spec_name_prefix = $3; }
+| "%no-lines" { no_lines_flag = true; }
+| "%nondeterministic-parser" { nondeterministic_parser = true; }
+| "%output" "=" STRING { spec_outfile = $3; }
+| "%parse-param" "{...}" { add_param ("parse_param", $2, @2); }
+| "%pure-parser" { pure_parser = true; }
+| "%push-parser" { push_parser = true; }
+| "%require" STRING { version_check (&@2, $2); }
+| "%skeleton" STRING { skeleton = $2; }
+| "%start-header" braceless { muscle_code_grow ("start_header", $2, @2); }
+| "%token-table" { token_table_flag = true; }
+| "%verbose" { report_flag = report_states; }
+| "%yacc" { yacc_flag = true; }