]> git.saurik.com Git - bison.git/commit - data/glr.c
Some code and documentation improvements.
authorJoel E. Denny <jdenny@clemson.edu>
Tue, 25 Aug 2009 05:12:37 +0000 (01:12 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Tue, 25 Aug 2009 06:56:46 +0000 (02:56 -0400)
commit87412882128fc3ae807f47db23884552f5841e74
treee79b031a31974ad29bc4e664bc3e224202d746ad
parente6c849d82a95be8a595c254cc3046cfae725f064
Some code and documentation improvements.

* data/c.m4 (b4_table_value_equals): New macro to capture
some repeated code.
* data/glr.c (yyis_pact_ninf): Use it here.
(yyis_table_ninf): Likewise.
(yyreportSyntaxError): Improve internal comments.
* data/yacc.c (yyis_pact_ninf): New macro copied from glr.c.
Use it everywhere possible.
(yyis_table_ninf): Likewise.
(yysyntax_error): Improve internal comments.
* data/lalr1.cc (yysyntax_error_): Likewise.
* data/lalr1.java (yysyntax_error): Likewise.
* src/tables.h: Improve comments about yypact, yytable, etc.
ChangeLog
data/c.m4
data/glr.c
data/lalr1.cc
data/lalr1.java
data/yacc.c
src/tables.h