]> granicus.if.org Git - re2c/commit
Parser grammar cleanup.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 29 Mar 2016 21:33:32 +0000 (22:33 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 29 Mar 2016 21:37:44 +0000 (22:37 +0100)
commita72475dc4e8821c3d6b781055ac641526c45275c
treed7041f4f03678f68027a2d1ed8bd29c51199af55
parent7aac1ad2d440c47ea458e6da20f2a83d95f3b08e
Parser grammar cleanup.

 - Rearranged some rules to avoid code duplication.
 - Added production and error message about contexts in named definitions.
 - Removed productions and error messages about missing expression
   (simple 'syntax error' is enough, given that only part of the
   errors was captured by the removed productions).
re2c/bootstrap/src/parse/lex.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/parse/parser.ypp
re2c/test/cond_error_03.c.c
re2c/test/contexts/syntax_error0.c [new file with mode: 0644]
re2c/test/contexts/syntax_error0.re [new file with mode: 0644]
re2c/test/error12.c