* This file must be processed with flex. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
%%
[ \t\n]+ /* skip whitespace */
\\$ /* skip line continuations */
-"#".* /* skip comments starting with "#" */
+"//".* /* skip comments starting with "//" */
+^"#".* /* skip lines starting with "#" */
^"!".* system(yytext + 1); /* execute shell command */
/* special values */
quit|exit return T_QUIT;
warranty return T_WARRANTY;
print return T_PRINT;
-read return T_READ;
-write return T_WRITE;
+iprint return T_IPRINT;
time return T_TIME;
xyzzy return T_XYZZY;
inventory return T_INVENTORY;
/* numbers */
{D}+ |
+"#"{D}+"R"{AN}+ |
+"#b"([01])+ |
+"#o"[0-7]+ |
+"#x"[0-9a-fA-F]+ |
{D}+"."{D}*({E})? |
{D}*"."{D}+({E})? |
{D}+{E} yylval = numeric(yytext); return T_NUMBER;