diff options
author | kugwa <kugwa2000@gmail.com> | 2015-10-23 03:11:45 +0800 |
---|---|---|
committer | kugwa <kugwa2000@gmail.com> | 2015-10-23 03:11:45 +0800 |
commit | 54499f655255823658225227bf1650eaf85c17ec (patch) | |
tree | 0694e19a569cf35c77cee6afa39b1e5b517e3bf3 | |
parent | c6e6d5ea592eb3ac35f3c4d1293862d935ece0cf (diff) | |
download | compiler2015-54499f655255823658225227bf1650eaf85c17ec.tar.gz compiler2015-54499f655255823658225227bf1650eaf85c17ec.tar.zst compiler2015-54499f655255823658225227bf1650eaf85c17ec.zip |
CONST_FLOAT can now match 1e9
-rw-r--r-- | lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -50,7 +50,7 @@ WS [ \t]+ /* You need to define the following RE's */ CONST_INT [+-]?{digit}+ -CONST_FLOAT [+-]?([0-9]+|[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?) +CONST_FLOAT [+-]?(([0-9]+|[0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) /* {digit}+\.{digit}+ */ CONST_STRING \"([^\"\n]|(\\.))*\" COMMENT \/\*([^*]|\n|(\*+([^*/]|\n)))*\*+\/ |