summaryrefslogtreecommitdiffstats
path: root/src/vhd2vl.l
diff options
context:
space:
mode:
authorRodrigo Alejandro Melo <rmelo@inti.gob.ar>2017-12-01 13:33:48 -0300
committerRodrigo Alejandro Melo <rmelo@inti.gob.ar>2017-12-01 13:33:48 -0300
commit4aa6f8e07914cb1aa8cde5da5e3512c0f717f737 (patch)
treef9d23d9d42f4a8b22dcd272715af11c962097c15 /src/vhd2vl.l
parent5ac1f1eba35fec83789c635b7b145474a77a5fde (diff)
downloadvhdl2vl-4aa6f8e07914cb1aa8cde5da5e3512c0f717f737.tar.gz
vhdl2vl-4aa6f8e07914cb1aa8cde5da5e3512c0f717f737.zip
Fixed scientific notation when the sign of the exponent is used
Removed the testcase of todo.vhd.
Diffstat (limited to 'src/vhd2vl.l')
-rw-r--r--src/vhd2vl.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhd2vl.l b/src/vhd2vl.l
index ab3c0d0..9719206 100644
--- a/src/vhd2vl.l
+++ b/src/vhd2vl.l
@@ -163,8 +163,8 @@ int scan_int(char *s);
return NATURAL;
}
-[0-9]+e[0-9]+ |
-[0-9]+\.[0-9]+e[0-9]+ {
+[0-9]+e[-+]?[0-9]+ |
+[0-9]+\.[0-9]+e[-+]?[0-9]+ {
yylval.txt=malloc(strlen(yytext)+1);
strcpy(yylval.txt, yytext);
return SCIENTIFIC;
OpenPOWER on IntegriCloud