]>
Commit | Line | Data |
---|---|---|
9611cfa2 JD |
1 | 2007-03-02 Joel E. Denny <jdenny@ces.clemson.edu> |
2 | ||
3 | Miscellaneous %define and %code cleanup. | |
4 | * data/bison.m4 (b4_percent_define_flag_if): Correct comments on how | |
5 | values are interpreted. | |
6 | * doc/bison.texinfo (Decl Summary): Clean up and extend %define | |
7 | documentation a little more. | |
8 | * src/muscle_tab.c (MUSCLE_USER_NAME_CONVERT, | |
9 | muscle_percent_define_insert, muscle_percent_code_grow): New | |
10 | functions/macros. | |
11 | * src/muscle_tab.h (muscle_percent_define_insert, | |
12 | muscle_percent_code_grow): Prototype. | |
13 | * src/parse-gram.y (prologue_declaration): Use | |
14 | muscle_percent_define_insert and muscle_percent_code_grow when parsing | |
15 | %define and %code directives. | |
16 | ||
17 | Make it easy to share %define boolean variables between the front-end | |
18 | and back-end. Though not used yet, this will be useful in the future. | |
19 | * data/bison.m4 (b4_check_user_names): Rewrite comments to talk about | |
20 | Bison uses of names rather than just skeleton uses of names. | |
21 | (b4_percent_define_get, b4_percent_define_ifdef): Rename | |
22 | b4_percent_define_skeleton_variables(VARIABLE) to | |
23 | b4_percent_define_bison_variables(VARIABLE). | |
24 | (b4_percent_code_get, b4_percent_code_ifdef): Rename | |
25 | b4_percent_code_skeleton_qualifiers(QUALIFIER) to | |
26 | b4_percent_code_bison_qualifiers(QUALIFIER). | |
27 | (b4_check_user_names_wrap): Update for renames. | |
28 | * src/muscle_tab.c, src/muscle_tab.h (muscle_percent_define_flag_if, | |
29 | muscle_percent_define_default): New functions mimicking | |
30 | b4_percent_define_flag_if and b4_percent_define_default. | |
31 | ||
32 | For %define variables, report locations for invalid values and | |
33 | redefinitions. | |
34 | * data/bison.m4 (b4_percent_define_flag_if): Read | |
35 | b4_percent_define_loc(VARIABLE) to report the location of an invalid | |
36 | value for VARIABLE. | |
37 | (b4_percent_define_default): Save a special location in | |
38 | b4_percent_define_loc(VARIABLE) in case the default value for VARIABLE | |
39 | must later be reported as invalid. | |
40 | * src/muscle_tab.c (muscle_location_grow, muscle_location_decode): New | |
41 | functions. | |
42 | (muscle_percent_define_insert): Record the location of VARIABLE in | |
43 | muscle percent_define_loc(VARIABLE), and use it to report the previous | |
44 | location for a redefinition. | |
45 | (muscle_percent_define_flag_if): Update like b4_percent_define_flag_if. | |
46 | (muscle_percent_define_default): Update like b4_percent_define_default. | |
47 | (muscle_grow_user_name_list): Rename to... | |
48 | (muscle_user_name_list_grow): ... this for consistency and use | |
49 | muscle_location_grow. | |
50 | * src/muscle_tab.h (muscle_location_grow): Prototype. | |
51 | * tests/input.at (%define errors): Update expected output. | |
52 | * tests/skeletons.at (%define boolean variables: invalid skeleton | |
53 | defaults): New test case. | |
54 | ||
0bf92491 JD |
55 | 2007-02-28 Joel E. Denny <jdenny@ces.clemson.edu> |
56 | ||
57 | * src/print.c (lookahead_set, state_default_rule): Remove. | |
58 | (print_reductions): Replace state_default_rule invocation with | |
59 | equivalent use of yydefact, which was computed in token_actions in | |
60 | tables.c. | |
61 | (print_results): Don't allocate lookahead_set. | |
62 | ||
d3b12988 PB |
63 | 2007-02-27 Paolo Bonzini <bonzini@gnu.org> |
64 | ||
65 | * data/lalr1.java: Prefix all private members with yy. | |
66 | ||
f57a7536 JD |
67 | 2007-02-24 Joel E. Denny <jdenny@ces.clemson.edu> |
68 | ||
69 | Use YYFPRINTF instead of fprintf where appropriate. Reported by | |
70 |