diff options
author | Rodrigo Alejandro Melo <rmelo@inti.gob.ar> | 2017-12-01 13:33:48 -0300 |
---|---|---|
committer | Rodrigo Alejandro Melo <rmelo@inti.gob.ar> | 2017-12-01 13:33:48 -0300 |
commit | 4aa6f8e07914cb1aa8cde5da5e3512c0f717f737 (patch) | |
tree | f9d23d9d42f4a8b22dcd272715af11c962097c15 /src/vhd2vl.l | |
parent | 5ac1f1eba35fec83789c635b7b145474a77a5fde (diff) | |
download | vhdl2vl-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.l | 4 |
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; |