mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
style: update comments
* src/reader.c: action_obstack was removed in 2002... * src/parse-gram.y: Better names. * src/scan-code.h: More comments.
This commit is contained in:
@@ -48,6 +48,10 @@ m4_define([b4_pure_if],
|
|||||||
## api.push-pull. ##
|
## api.push-pull. ##
|
||||||
## --------------- ##
|
## --------------- ##
|
||||||
|
|
||||||
|
# b4_pull_if, b4_push_if
|
||||||
|
# ----------------------
|
||||||
|
# Whether the pull/push APIs are needed. Both can be enabled.
|
||||||
|
|
||||||
b4_percent_define_default([[api.push-pull]], [[pull]])
|
b4_percent_define_default([[api.push-pull]], [[pull]])
|
||||||
b4_percent_define_check_values([[[[api.push-pull]],
|
b4_percent_define_check_values([[[[api.push-pull]],
|
||||||
[[pull]], [[push]], [[both]]]])
|
[[pull]], [[push]], [[both]]]])
|
||||||
|
|||||||
@@ -695,8 +695,8 @@ rhs:
|
|||||||
current_lhs_named_ref); }
|
current_lhs_named_ref); }
|
||||||
| rhs symbol named_ref.opt
|
| rhs symbol named_ref.opt
|
||||||
{ grammar_current_rule_symbol_append ($2, @2, $3); }
|
{ grammar_current_rule_symbol_append ($2, @2, $3); }
|
||||||
| rhs tag.opt "{...}"[act] named_ref.opt[name]
|
| rhs tag.opt "{...}"[action] named_ref.opt[name]
|
||||||
{ grammar_current_rule_action_append ($act, @act, $name, $[tag.opt]); }
|
{ grammar_current_rule_action_append ($action, @action, $name, $[tag.opt]); }
|
||||||
| rhs "%?{...}"
|
| rhs "%?{...}"
|
||||||
{ grammar_current_rule_predicate_append ($2, @2); }
|
{ grammar_current_rule_predicate_append ($2, @2); }
|
||||||
| rhs "%empty"
|
| rhs "%empty"
|
||||||
|
|||||||
@@ -695,12 +695,10 @@ packgram (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------.
|
/*--------------------------------------------------------------.
|
||||||
| Read in the grammar specification and record it in the format |
|
| Read in the grammar specification and record it in the format |
|
||||||
| described in gram.h. All actions are copied into ACTION_OBSTACK, |
|
| described in gram.h. |
|
||||||
| in each case forming the body of a C function (YYACTION) which |
|
`--------------------------------------------------------------*/
|
||||||
| contains a switch statement to decide which action to execute. |
|
|
||||||
`------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
reader (const char *gram)
|
reader (const char *gram)
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ void code_props_symbol_action_init (code_props *self, char const *code,
|
|||||||
location code_loc);
|
location code_loc);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* \param type type for midrule actions
|
||||||
* \pre
|
* \pre
|
||||||
* - <tt>self != NULL</tt>.
|
* - <tt>self != NULL</tt>.
|
||||||
* - <tt>code != NULL</tt>.
|
* - <tt>code != NULL</tt>.
|
||||||
|
|||||||
Reference in New Issue
Block a user