Propagate i18n changes into glr.c.

* TODO: Update.
	* data/glr.c (yyreportSyntaxError): Use "switch" instead of
	building the error message format dynamically.
	* data/lalr1.java: Formatting changes.
This commit is contained in:
Akim Demaille
2008-12-11 09:37:40 +01:00
parent 2cd1af957a
commit 2b008529ed
4 changed files with 39 additions and 26 deletions

4
TODO
View File

@@ -161,8 +161,8 @@ In lalr1.cc we invoke it with the translated lookahead (yytoken), and
yacc.c uses yychar. I don't see why.
** yysyntax_error
The use of switch to select yyfmt in lalr1.cc seems simpler than
what's done in yacc.c.
The code bw glr.c and yacc.c is really alike, we can certainly factor
some parts.
* Header guards