re PR c++/17596 (expression parser is too slow, should be rewritten)
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 23 Sep 2004 11:58:15 +0000 (11:58 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 23 Sep 2004 11:58:15 +0000 (11:58 +0000)
commitb8b94c5ba81744d325f235a0409660f50ac3f361
tree2c56f1a1653b9a207d3f5077600a12d7209d11ee
parent8921359e5d926d16a2cc476b52e5f91f33fc7120
re PR c++/17596 (expression parser is too slow, should be rewritten)

2004-09-23  Paolo Bonzini  <bonzini@gnu.org>

PR c++/17596

* parser.c (cp_parser_token_tree_map_node,
cp_parser_pm_expression, cp_parser_additive_expression,
cp_parser_multiplicative_expression, cp_parser_shift_expression,
cp_parser_relational_expression, cp_parser_equality_expression,
cp_parser_and_expression, cp_parser_exclusive_or_expression,
cp_parser_inclusive_or_expression,
cp_parser_logical_and_expression,
cp_parser_logical_or_expression): Removed.
(enum cp_parser_prec, struct cp_parser_token_tree_map_node,
binops, binops_by_token): New.
(cp_parser_assignment_expression): Use cp_parser_binary_expression.
(cp_parser_new): Initialize binops_by_token.
(cp_parser_binary_expression): Rewritten.
(N_CP_TTYPES): New.

From-SVN: r87942
gcc/cp/ChangeLog
gcc/cp/parser.c