]> git.saurik.com Git - bison.git/commit
* data/lalr1.cc (parser::token_number_type, parser::rhs_number_type)
authorAkim Demaille <akim@epita.fr>
Wed, 22 Dec 2004 10:06:15 +0000 (10:06 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 22 Dec 2004 10:06:15 +0000 (10:06 +0000)
commite019c2477959aac474358ae74502fd96a60dfb89
tree185760f3d17d97f1fa56ad1f3cd182feaa11b8c2
parent72731bb70bdbd8fe7cc178214b255e6425a04c6d
* data/lalr1.cc (parser::token_number_type, parser::rhs_number_type)
(parser::state_type, parser::semantic_type, parser::location_type):
Private, not public.
(parser::parse): Return ints, not bool.
Returning a bool introduces a problem: 0 corresponds to false, and
it seems weird to return false on success.  Returning true changes
the conventions for yyparse.
Alternatively we could return void and send an exception.
There is no clear consensus (yet?).
(state_stack, semantic_stack, location_stack): Rename as...
(state_stack_type, semantic_stack_type, location_stack_type): these.
Private, not public.
* tests/c++.at: New.
* tests/testsuite.at, tests/Makefile.am: Adjust.
ChangeLog
data/lalr1.cc
tests/Makefile.am
tests/c++.at [new file with mode: 0644]
tests/testsuite.at