From fc5d487de27aa7aa17502008c848d06758223888 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 12 Jan 2012 03:14:17 +1000 Subject: Switch to the lemon parser. --- LuaSL/src/LuaSL_lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL/src/LuaSL_lexer.l') diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index d81eb29..ddcb520 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l @@ -100,7 +100,7 @@ IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* "}" %{ return common(yylval, yytext, TRUE, LSL_BLOCK_CLOSE); %} ";" %{ return common(yylval, yytext, TRUE, LSL_STATEMENT); %} -<> { yyterminate(); } +<> { return common(yylval, yytext, TRUE, LSL_SCRIPT); } /* Everything else */ . %{ printf(" unexpected character.\n"); yylval->value.unknownValue = strdup(yytext); common(yylval, yytext, TRUE, LSL_UNKNOWN); %} @@ -150,7 +150,7 @@ int common(YYSTYPE *lval, char *text, boolean checkIgnorable, int type) } #ifdef LUASL_DEBUG - printf ("%04d, %04d [%s]\n", line, column, text); + printf ("******************************common(%s, \"%s\", , %d) %04d, %04d\n", lval->token->token, text, type, line, column); #endif return type; -- cgit v1.1