]>
Commit | Line | Data |
---|---|---|
1 | 2007-03-07 Paolo Bonzini <bonzini@gnu.org> | |
2 | ||
3 | * data/java.m4 (b4_single_class_if): Remove. | |
4 | (b4_abstract_if): Look at "%define abstract". | |
5 | (b4_lexer_if): New. | |
6 | (b4_union_name): Rename... | |
7 | (b4_yystype): ... to this. Map to "%define stype". | |
8 | (b4_rhs_value, b4_parse_param_decl, b4_lex_param_decl, | |
9 | b4_maybe_throws): Fix quoting. | |
10 | (b4_lex_param_call): Move below to keep b4_*_param_decl close. | |
11 | * data/lalr1.java (Lexer interface): Always define. | |
12 | (Lexer interface within parser class): Remove. | |
13 | (YYLexer class): New, used when "%code lexer" is present. | |
14 | (constructor): When "%code lexer" is used, pass %lex-param | |
15 | to the lexer constructor. | |
16 | (yylex, yyparse): Remove %lex-param from method invocations | |
17 | (YYStack, yyaction, yyparse): Rename b4_union_name to b4_yystype. | |
18 | ||
19 | * doc/bison.texinfo (Java Bison Interface): Mention "%define | |
20 | abstract". Rename "%define union_name" to "%define stype". | |
21 | Rename method names according to previous patch. | |
22 | (Java Scanner Interface): Describe "%code lexer" instead of | |
23 | "%pure-parser" and "%define single_class". | |
24 | (Java Differences): Mention "%code lexer". | |
25 | ||
26 | * tests/java.at (_AT_DATA_JAVA_CALC_Y): Remove final argument. | |
27 | Include scanner here, using macros from tests/local.at. | |
28 | (AT_DATA_CALC_Y): Remove final argument. | |
29 | (_AT_CHECK_JAVA_CALC): Likewise. | |
30 | (AT_CHECK_JAVA_CALC): Likewise. Test all four combinations | |
31 | of %locations and %error-verbose. | |
32 | (main): Test with and without %lex-param. | |
33 | * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Push AT_LEXPARAM_IF. | |
34 | (AT_BISON_OPTION_POPDEFS): Pop it. | |
35 | ||
36 | 2007-03-07 Juan Manuel Guerrero <juan.guerrero@gmx.de> | |
37 | ||
38 | DJGPP spefic issue. Inhibit the use of disallowed characters for | |
39 | file name genertion on Win98, WinXP, etc. These are |<>":?*\ | |
40 | and concern testsuite case 46. | |
41 | * Makefile.am: djgpp/testsuite.sed added to EXTRA_DIST | |
42 | * djgpp/testsuite.sed: Inhibit the use of disallowed characters. | |
43 | * djgpp/config.bat: Inhibit the use of disallowed characters. | |
44 | ||
45 | 2007-03-02 Joel E. Denny <jdenny@ces.clemson.edu> | |
46 | ||
47 | Miscellaneous %define and %code cleanup. | |
48 | * data/bison.m4 (b4_percent_define_flag_if): Correct comments on how | |
49 | values are interpreted. | |
50 | * doc/bison.texinfo (Decl Summary): Clean up and extend %define | |
51 | documentation a little more. | |
52 | * src/muscle_tab.c (MUSCLE_USER_NAME_CONVERT, | |
53 | muscle_percent_define_insert, muscle_percent_code_grow): New | |
54 | functions/macros. | |
55 | * src/muscle_tab.h (muscle_percent_define_insert, | |
56 | muscle_percent_code_grow): Prototype. | |
57 | * src/parse-gram.y (prologue_declaration): Use | |
58 | muscle_percent_define_insert and muscle_percent_code_grow when parsing | |
59 | %define and %code directives. | |
60 | ||
61 | Make it easy to share %define boolean variables between the front-end | |
62 | and back-end. Though not used yet, this will be useful in the future. | |
63 | * data/bison.m4 (b4_check_user_names): Rewrite comments to talk about | |
64 | Bison uses of names rather than just skeleton uses of names. | |
65 | (b4_percent_define_get, b4_percent_define_ifdef): Rename | |
66 | b4_percent_define_skeleton_variables(VARIABLE) to | |
67 | b4_percent_define_bison_variables(VARIABLE). | |
68 | (b4_percent_code_get, b4_percent_code_ifdef): Rename | |
69 | b4_percent_code_skeleton_qualifiers(QUALIFIER) to | |
70 | b4_percent_code_bison_qualifiers(QUALIFIER). | |
71 | (b4_check_user_names_wrap): Update for renames. | |
72 | * src/muscle_tab.c, src/muscle_tab.h (muscle_percent_define_flag_if, | |
73 | muscle_percent_define_default): New functions mimicking | |
74 | b4_percent_define_flag_if and b4_percent_define_default. | |
75 | ||
76 | For %define variables, report locations for invalid values and | |
77 | redefinitions. | |
78 | * data/bison.m4 (b4_percent_define_flag_if): Read | |
79 | b4_percent_define_loc(VARIABLE) to report the location of an invalid | |
80 | value for VARIABLE. | |
81 | (b4_percent_define_default): Save a special location in | |
82 | b4_percent_define_loc(VARIABLE) in case the default value for VARIABLE | |
83 | must later be reported as invalid. | |
84 | * src/muscle_tab.c (muscle_location_grow, muscle_location_decode): New | |
85 | functions. | |
86 | (muscle_percent_define_insert): Record the location of VARIABLE in | |
87 | muscle percent_define_loc(VARIABLE), and use it to report the previous | |
88 | location for a redefinition. | |
89 | (muscle_percent_define_flag_if): Update like b4_percent_define_flag_if. | |
90 | (muscle_percent_define_default): Update like b4_percent_define_default. | |
91 | (muscle_grow_user_name_list): Rename to... | |
92 | (muscle_user_name_list_grow): ... this for consistency and use | |
93 | muscle_location_grow. | |
94 | * src/muscle_tab.h (muscle_location_grow): Prototype. | |
95 | * tests/input.at (%define errors): Update expected output. | |
96 | * tests/skeletons.at (%define boolean variables: invalid skeleton | |
97 | defaults): New test case. | |
98 | ||
99 | 2007-02-28 Joel E. Denny <jdenny@ces.clemson.edu> | |
100 | ||
101 | * src/print.c (lookahead_set, state_default_rule): Remove. | |
102 | (print_reductions): Replace state_default_rule invocation with | |
103 | equivalent use of yydefact, which was computed in token_actions in | |
104 | tables.c. | |
105 | (print_results): Don't allocate lookahead_set. | |
106 | ||
107 | 2007-02-27 Paolo Bonzini <bonzini@gnu.org> | |
108 | ||
109 | * data/lalr1.java: Prefix all private members with yy. | |
110 | ||
111 | 2007-02-24 Joel E. Denny <jdenny@ces.clemson.edu> | |
112 | ||
113 | Use YYFPRINTF instead of fprintf where appropriate. Reported by | |
114 |