diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-07-12 15:16:51 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-07-14 06:48:48 +0200 |
commit | 78f72a451651b3d677f73e5d6960a6b68a50612b (patch) | |
tree | a3859243a373535b583760fae8d4f25721dd3e92 /src/state.h | |
parent | c04693d651b6cefc67337146e5911e3070bf9ef4 (diff) | |
download | bison-78f72a451651b3d677f73e5d6960a6b68a50612b.tar.gz |
style: s/lookahead_tokens/lookaheads/g
Currently we use both names. Let's stick to the short one.
* src/AnnotationList.c, src/conflicts.c, src/counterexample.c,
* src/getargs.c, src/getargs.h, src/graphviz.c, src/ielr.c,
* src/lalr.c, src/print-graph.c, src/print-xml.c, src/print.c,
* src/state-item.c, src/state.c, src/state.h, src/tables.c:
s/lookahead_token/lookahead/gi.
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state.h b/src/state.h index a274e611..6a2fd1c3 100644 --- a/src/state.h +++ b/src/state.h @@ -62,7 +62,7 @@ Each reductions structure describes the possible reductions at the state whose number is in the number field. rules is an array of - num rules. lookahead_tokens is an array of bitsets, one per rule. + num rules. lookaheads is an array of bitsets, one per rule. Conflict resolution can decide that certain tokens in certain states should explicitly be errors (for implementing %nonassoc). @@ -187,7 +187,7 @@ errs *errs_new (int num, symbol **tokens); typedef struct { int num; - bitset *lookahead_tokens; + bitset *lookaheads; /* Sorted ascendingly on rule number. */ rule *rules[1]; } reductions; @@ -254,9 +254,9 @@ void state_errs_set (state *s, int num, symbol **errors); /* Print on OUT all the lookahead tokens such that this STATE wants to reduce R. */ -void state_rule_lookahead_tokens_print (state const *s, rule const *r, FILE *out); -void state_rule_lookahead_tokens_print_xml (state const *s, rule const *r, - FILE *out, int level); +void state_rule_lookaheads_print (state const *s, rule const *r, FILE *out); +void state_rule_lookaheads_print_xml (state const *s, rule const *r, + FILE *out, int level); /* Create/destroy the states hash table. */ void state_hash_new (void); |