diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-24 00:05:11 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-12-24 00:05:11 +0530 |
| commit | 382c19861608e9ab9903c78f1e5c02bc061cc7c8 (patch) | |
| tree | cbf2d16132a71b21e0f0e81f6b724685dcb242aa /src/cljcc/util.clj | |
| parent | b50b3552de7e0e6bf71d78e59adec5e305d7618b (diff) | |
Add driver changes and float regex
Diffstat (limited to 'src/cljcc/util.clj')
| -rw-r--r-- | src/cljcc/util.clj | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cljcc/util.clj b/src/cljcc/util.clj index c9fc208..0a24eef 100644 --- a/src/cljcc/util.clj +++ b/src/cljcc/util.clj @@ -83,6 +83,7 @@ (def signed-long-re #"[0-9]+[lL]") (def unsigned-int-re #"[0-9]+[uU]") (def signed-int-re #"[0-9]+") +(def fractional-constant #"([0-9]*\.[0-9]+|[0-9]+\.?)[Ee][+-]?[0-9]+|[0-9]*\.[0-9]+|[0-9]+\.") (defn read-number "Returns number in string form. |
