support datum label reader

This commit is contained in:
Yuichi Nishiwaki
2014-04-01 11:40:20 +09:00
parent 2643cb0e3c
commit e32e42c5f9
3 changed files with 91 additions and 1 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ extern "C" {
enum {
tEOF = 0,
tDATUM_COMMENT,
tLABEL_SET, tLABEL_REF, tDATUM_COMMENT,
tLPAREN, tRPAREN, tLBRACKET, tRBRACKET, tDOT, tVPAREN,
tQUOTE, tQUASIQUOTE, tUNQUOTE, tUNQUOTE_SPLICING,
tINT, tBOOLEAN,
@@ -34,6 +34,7 @@ typedef union YYSTYPE {
struct parser_control {
pic_state *pic;
YYSTYPE yylval;
xhash labels;
jmp_buf jmp;
const char *msg;
};