diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-26 00:20:25 -0500 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-26 00:20:25 -0500 |
commit | 863a20f1045b761ac65d7051bcca47e4eb01c81d (patch) | |
tree | 9fede0875182ea85cf8980e3330de6640d840ea3 /parser.y | |
parent | a2dc66961f22df647e0428b1e12bae8a2922c503 (diff) | |
download | txr-863a20f1045b761ac65d7051bcca47e4eb01c81d.tar.gz txr-863a20f1045b761ac65d7051bcca47e4eb01c81d.tar.bz2 txr-863a20f1045b761ac65d7051bcca47e4eb01c81d.zip |
* parser.y (grammar): Fixes for bison 2.4.1. Remove superfluous action
in chrlit. Include <stdlib.h> for abort.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -30,7 +30,7 @@ #include <assert.h> #include <limits.h> #include <dirent.h> -#include <stddef.h> +#include <stdlib.h> #include <wchar.h> #include "config.h" #include "lib.h" @@ -515,7 +515,6 @@ strlit : '"' '"' { $$ = null_string; } chrlit : '\'' '\'' { $$ = nil; yyerror("empty character literal"); } - { $$ = nil; } | '\'' litchars '\'' { $$ = car($2); if (cdr($2)) yyerror("multiple characters in " |