aboutsummaryrefslogtreecommitdiff
path: root/lib/forlanlex.l
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2014-12-10 08:56:48 +0200
committerSergey Poznyakoff <gray@gnu.org>2014-12-10 08:56:48 +0200
commitbdd68868836f01ac766afa1a6c79a5f7d4287da6 (patch)
treed875e9fbf02575c9da52a2846ac00d09d5d3cefa /lib/forlanlex.l
parent85dfe24a45c65a9f414769fe059b1c5a06a3b176 (diff)
downloadeclat-bdd68868836f01ac766afa1a6c79a5f7d4287da6.tar.gz
eclat-bdd68868836f01ac766afa1a6c79a5f7d4287da6.tar.bz2
Fix coredump when comparing non-existing nodes.
* lib/forlan.c (coerce_value): Handle NULL nodes. (values_equal): Handle NULL strings. (dump_expr): Handle EQ and NE. * lib/forlanlex.l: Fix distinction before negative numeric and identifier. * etc/describe-security-groups.fln: ipProtocol == "-1" means "all". * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise. * tests/comp00.at: New file. * tests/comp01.at: New file. * tests/comp02.at: New file. * tests/comp03.at: New file. * tests/comp04.at: New file. * tests/tforlan.c (main): Optionally read XML from standard input.
Diffstat (limited to 'lib/forlanlex.l')
-rw-r--r--lib/forlanlex.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/forlanlex.l b/lib/forlanlex.l
index c5afdcd..d6fb335 100644
--- a/lib/forlanlex.l
+++ b/lib/forlanlex.l
@@ -61,3 +61,3 @@ static int yywrap(void);
WS [ \t\f][ \t\f]*
-IDC [a-zA-Z_0-9-]
+ID [a-zA-Z_][a-zA-Z_0-9-]*
%x COMMENT ML STR
@@ -72,3 +72,3 @@ IDC [a-zA-Z_0-9-]
/* Decimal numbers */
-[0-9][0-9]* { grecs_line_begin();
+-?[0-9][0-9]* { grecs_line_begin();
grecs_line_add(yytext, yyleng);
@@ -90,3 +90,3 @@ continue return CONTINUE;
"!=" return NE;
-{IDC}{IDC}* { grecs_line_begin();
+{ID} { grecs_line_begin();
grecs_line_add(yytext, yyleng);

Return to:

Send suggestions and report system problems to the System administrator.