path: root/lib/forlanlex.l
authorSergey Poznyakoff <>2012-10-01 13:43:18 (GMT)
committer Sergey Poznyakoff <>2012-10-01 13:58:20 (GMT)
commitddb280198adcada561b8e72c79b92d50a05b3e78 (patch) (side-by-side diff)
treede6f2d47fe10d0fb37279893d17ffcbd30b156ce /lib/forlanlex.l
parent78b25d9756403fef919684738f7aecb2cdcee465 (diff)
Implement exit; add some docs.
* (SUBDIRS): Add doc. * Build doc/Makefile * doc/ New file. * doc/eclat-associate-address.1: New file. * doc/eclat.1: New file. * etc/associate-address.fln: Call exit if the request fails. * etc/default.fln: Call exit if error is returned or if the response is not recognized. * lib/forlan.c (forlan_eval_env) <exit_code>: New member. New built-in function: exit. (forlan_run): Return exit code. * lib/forlan.h (forlan_run): Change return type. * lib/forlanlex.l: Treat unquoted decimal number as a quoted string. * src/asscaddr-cl.opt: Minor changes. * src/cmdline.opt: Minor changes. * src/eclat.c: Return EX_NOPERM on unsufficient permissions to open the configuration file. * tests/ New file. * tests/ Add new files. * tests/ Include new test cases. * tests/tforlan.c: Propagate the return from forlan_run to the shell.
Diffstat (limited to 'lib/forlanlex.l') (more/less context) (ignore whitespace changes)
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/forlanlex.l b/lib/forlanlex.l
index c3797dd..8b3d29a 100644
--- a/lib/forlanlex.l
+++ b/lib/forlanlex.l
@@ -66,6 +66,11 @@ IDC [a-zA-Z_0-9-]
<COMMENT>\n grecs_locus_point_advance_line(grecs_current_locus_point);
"//".* ;
+ /* Decimal numbers */
+[0-9][0-9]* { grecs_line_begin();
+ grecs_line_add(yytext, yyleng);
+ yylval.string = grecs_line_finish();
+ return STRING; }
/* Keywords */
if return IF;
else return ELSE;

Return to:

Send suggestions and report system problems to the System administrator.