From d911517dc2f9c4c3ce57529ac4d64c17185544e9 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 25 May 2009 18:39:27 +0200 Subject: Imported Upstream version 0.10 --- etpo/lexer.l | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'etpo/lexer.l') diff --git a/etpo/lexer.l b/etpo/lexer.l index 9b5fee7..9bc4b75 100644 --- a/etpo/lexer.l +++ b/etpo/lexer.l @@ -53,6 +53,8 @@ error_code|ec { yylval.sval = g_strdup(yytext); \n { yylval.sval = g_strdup(yytext); return LITERAL; }; <*>^#.*$ { }; +<*>^(error_table_base|index)[ \t]+[0-9]+$ { }; +<*>^(prefix|id|error_table_manager)[ \t]+.*$ { }; %% /* Complete list of filenames, an iterator for that list, and the contents of @@ -102,15 +104,15 @@ yywrap(void) static void header(void) { - const char *boilerplate = "const char *dummy = {\n"; - printf(boilerplate); + const char *boilerplate = "#include \n\nconst char *dummy[] = {\n"; + printf("%s", boilerplate); } static void tail(void) { - const char *boilerplate = "};\n"; - printf(boilerplate); + const char *boilerplate = "\tNULL\n};\n"; + printf("%s", boilerplate); } int -- cgit