mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
reader: clarify variable names
* src/reader.c (grammar_rule_check_and_complete): When 'p' and 'lhs' are aliases, prefer the latter, for clarity and consistency. (grammar_current_rule_begin): Avoid 'p', current_rule suffices. * src/gram.h, src/gram.c: Comment changes. ptdr# calc.tab.c
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
# include "symtab.h"
|
||||
# include "named-ref.h"
|
||||
|
||||
/* A list of symbols, used during the parsing to store the rules. */
|
||||
/* A list of symbols, used during the parsing for many different
|
||||
purposes: rules, symbol declarations or properties (such as
|
||||
%destructor, etc.)... */
|
||||
typedef struct symbol_list
|
||||
{
|
||||
/**
|
||||
@@ -67,9 +69,10 @@ typedef struct symbol_list
|
||||
struct symbol_list *midrule_parent_rule;
|
||||
int midrule_parent_rhs_index;
|
||||
|
||||
/* ---------------------------------------------- */
|
||||
/* Apply to the rule (attached to the LHS only). */
|
||||
/* ---------------------------------------------- */
|
||||
/*--------------------------------------------------------------.
|
||||
| Used for rules only (attached to the "LHS", one per rule even |
|
||||
| when several RHSs are bound to a single lhs via "|"). |
|
||||
`--------------------------------------------------------------*/
|
||||
|
||||
/* Precedence/associativity. */
|
||||
symbol *ruleprec;
|
||||
|
||||
Reference in New Issue
Block a user