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:57:57 +0000 (02:57 -0400)
commit77373efad24be4ed77391c9e8ab2f85285810311
tree2c8dc355407185f8caff93b4119e08187acb80e0
parent890ab17c84437fcfc56195e72484110c5c231a46
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.
(cherry picked from commit 87412882128fc3ae807f47db23884552f5841e74)

Conflicts:

data/lalr1.java
data/yacc.c
ChangeLog
data/c.m4
data/glr.c
data/lalr1.cc
data/lalr1.java
data/yacc.c
src/parse-gram.c
src/parse-gram.h
src/tables.h