summaryrefslogtreecommitdiffabout
path: root/lib/forlanlex.l
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-03 22:22:27 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2012-10-03 22:22:27 (GMT)
commit11db69e6d2b292df96845515f7df0e850b60c125 (patch) (side-by-side diff)
tree9c4bb3a47ead03b6093ceed3e0142fc259a91de0 /lib/forlanlex.l
parent256d8b3572532af87ea5b28379cee709ad44cea6 (diff)
downloadeclat-11db69e6d2b292df96845515f7df0e850b60c125.tar.gz
eclat-11db69e6d2b292df96845515f7df0e850b60c125.tar.bz2
Implement eq/ne comparisons in forlan; Implement describe-security-groups command.
* etc/Makefile.am: Add new file. * etc/describe-security-groups.fln: New file. * lib/forlan.c: Implement equality and inequality comparisons. * lib/forlan.h (forlan_opcode_eq) (forlan_opcode_ne): New opcodes. (FORLAN_NTYPES): New constants. * lib/forlangrm.y: Add equality and inequality productions. * lib/forlanlex.l: New tokens: == and != * src/dscrsecgrps-cl.opt: New file. * src/dscrsecgrps.c: New file. * src/Makefile.am: Add new files. * src/eclat.c: Implement describe-security-groups * src/eclat.h (eclat_describe_security_groups): New proto. * src/cretags.c: Fix memory leaks. * src/deltags.c: Likewise. * src/dscrtags.c: Likewise. * tests/describe-security-groups.at: New test case. * tests/testsuite.at: Include new test case. * tests/Makefile.am: Add new test case.
Diffstat (limited to 'lib/forlanlex.l') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/forlanlex.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/forlanlex.l b/lib/forlanlex.l
index 8b3d29a..8df6d80 100644
--- a/lib/forlanlex.l
+++ b/lib/forlanlex.l
@@ -83,6 +83,8 @@ continue return CONTINUE;
! return NOT;
"&&" return AND;
"||" return OR;
+"==" return EQ;
+"!=" return NE;
{IDC}{IDC}* { grecs_line_begin();
grecs_line_add(yytext, yyleng);
yylval.string = grecs_line_finish();

Return to:

Send suggestions and report system problems to the System administrator.