%{
+#include <stdlib.h>
+#include <limits.h>
+
#include <tlog.h>
#include <tmalloc.h>
#include <template.h>
}
<xEXPR,xVAR>{DIGIT}+ {
- yylval.intval = atoi(yytext);
+ yylval.intval = strtoll(yytext, NULL, 0);
return INTEGER;
}
{ "IF", 0, IF_P },
{ "ELSE", 0, ELSE_P },
{ "LOOP", 0, LOOP_P },
+ { "SELF", 0, SELF_P },
+ { "ELSIF", 0, ELSIF_P },
{ "ENDIF", 0, ENDIF_P },
{ "ENDLOOP", 0, ENDLOOP_P }
};
lexContext = tmpl->templateContext;
+ yylineno=1;
yyrestart(in);
BEGIN INITIAL;
}