commit-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison ./ChangeLog data/bison.c++ data/bison.sim...


From: Akim Demaille
Subject: bison ./ChangeLog data/bison.c++ data/bison.sim...
Date: Tue, 11 Jun 2002 16:16:06 -0400

CVSROOT:        /cvsroot/bison
Module name:    bison
Changes by:     Akim Demaille <address@hidden>  02/06/11 16:16:06

Modified files:
        .              : ChangeLog 
        data           : bison.c++ bison.simple 
        po             : POTFILES.in 
        src            : Makefile.am complain.c complain.h conflicts.c 
                         main.c muscle_tab.c options.c output.c reader.c 
                         reader.h symtab.c symtab.h system.h 
        tests          : calc.at reduce.at regression.at synclines.at 
                         torture.at 
Added files:
        src            : parse-gram.c parse-gram.h parse-gram.y 
                         scan-action.l scan-gram.c scan-gram.l 
Removed files:
        src            : lex.c lex.h 

Log message:
        Have Bison grammars parsed by a Bison grammar.
        * src/reader.c, src/reader.h (prologue_augment): New.
        * src/reader.c (copy_definition): Remove.
        * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
        (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
        (grammar_current_rule_prec_set, grammar_current_rule_check)
        (grammar_current_rule_symbol_append)
        (grammar_current_rule_action_append): Export.
        * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
        (symbol_list_action_append): Remove.
        Hook the routines from reader.
        * src/scan-gram.l: In INITIAL, characters and strings are tokens.
        * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
        * src/reader.c (read_declarations): Remove, unused.
        * src/parse-gram.y: Handle the epilogue.
        * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
        (grammar_start_symbol_set): this.
        * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
        * src/reader.c (readgram): Remove, unused.
        (reader): Adjust to insert eoftoken and axiom where appropriate.
        * src/reader.c (copy_dollar): Replace with...
        * src/scan-gram.h (handle_dollar): this.
        * src/parse-gram.y: Remove `%thong'.
        * src/reader.c (copy_at): Replace with...
        * src/scan-gram.h (handle_at): this.
        * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
        New.
        * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
        time being.
        * src/reader.h, src/reader.c (grammar_rule_end): New.
        * src/parse.y (current_type, current_class): New.
        Implement `%nterm', `%token' support.
        Merge `%term' into `%token'.
        (string_as_id): New.
        * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
        type name.
        * src/parse-gram.y: Be sure to handle properly the beginning of
        rules.
        * src/parse-gram.y: Handle %type.
        * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
        * src/parse-gram.y: More directives support.
        * src/options.c: No longer handle source directives.
        * src/parse-gram.y: Fix %output.
        * src/parse-gram.y: Handle %union.
        Use the prologue locations.
        * src/reader.c (parse_union_decl): Remove.
        * src/reader.h, src/reader.c (epilogue_set): New.
        * src/parse-gram.y: Use it.
        * data/bison.simple, data/bison.c++: b4_stype is now either not
        defined, then default to int, or to the contents of %union,
        without `union' itself.
        Adjust.
        * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
        * src/output.c (actions_output): Don't output braces, as they are
        already handled by the scanner.
        * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
        characters to themselves.
        * tests/reduce.at (Reduced Automaton): End the grammars with %% so
        that the epilogue has a proper #line.
        * src/parse-gram.y: Handle precedence/associativity.
        * src/symtab.c (symbol_precedence_set): Requires the symbol to be
        a terminal.
        * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
        * tests/calc.at: Do not use `%token "foo"' as it makes not sense
        at all to define terminals that cannot be emitted.
        * src/scan-gram.l: Escape M4 characters.
        * src/scan-gram.l: Working properly with escapes in user
        strings/characters.
        * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
        (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
        grammar.
        Use more modest sizes, as for the time being the parser does not
        release memory, and therefore the process swallows a huge amount
        of memory.
        * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
        stricter %token grammar.
        * src/symtab.h (associativity): Add `undef_assoc'.
        (symbol_precedence_set): Do nothing when passed an undef_assoc.
        * src/symtab.c (symbol_check_alias_consistence): Adjust.
        * tests/regression.at (Invalid %directive): Remove, as it is now
        meaningless.
        (Invalid inputs): Adjust to the new error messages.
        (Token definitions): The new grammar doesn't allow too many
        eccentricities.
        * src/lex.h, src/lex.c: Remove.
        * src/reader.c (lastprec, skip_to_char, read_signed_integer)
        (copy_character, copy_string2, copy_string, copy_identifier)
        (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
        (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
        (parse_action): Remove.
        * po/POTFILES.in: Adjust.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/ChangeLog.diff?tr1=1.705&tr2=1.706&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/bison.c++.diff?tr1=1.33&tr2=1.34&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/bison.simple.diff?tr1=1.30&tr2=1.31&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/po/POTFILES.in.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/parse-gram.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/parse-gram.h?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/parse-gram.y?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/scan-action.l?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/scan-gram.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/scan-gram.l?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/Makefile.am.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/complain.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/complain.h.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/conflicts.c.diff?tr1=1.78&tr2=1.79&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/main.c.diff?tr1=1.54&tr2=1.55&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/muscle_tab.c.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/options.c.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/output.c.diff?tr1=1.157&tr2=1.158&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/reader.c.diff?tr1=1.189&tr2=1.190&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/reader.h.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/symtab.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/symtab.h.diff?tr1=1.29&tr2=1.30&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/system.h.diff?tr1=1.45&tr2=1.46&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/calc.at.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/reduce.at.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/regression.at.diff?tr1=1.51&tr2=1.52&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/synclines.at.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/tests/torture.at.diff?tr1=1.15&tr2=1.16&r1=text&r2=text




reply via email to

[Prev in Thread] Current Thread [Next in Thread]