summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/numeric.fin
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-13 19:15:30 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-13 19:15:30 (GMT)
commitb334d7f6c99078dae9f0ba702a9194f4fd148a77 (patch)
tree14e7d99bb54cfea7d4a86a44720deb28f98356e6 /ds9/parsers/numeric.fin
parentfe4317865abb1017007f1bda915c83c86ccc20e9 (diff)
downloadblt-b334d7f6c99078dae9f0ba702a9194f4fd148a77.zip
blt-b334d7f6c99078dae9f0ba702a9194f4fd148a77.tar.gz
blt-b334d7f6c99078dae9f0ba702a9194f4fd148a77.tar.bz2
update ds9 parsers
Diffstat (limited to 'ds9/parsers/numeric.fin')
-rw-r--r--ds9/parsers/numeric.fin7
1 files changed, 7 insertions, 0 deletions
diff --git a/ds9/parsers/numeric.fin b/ds9/parsers/numeric.fin
new file mode 100644
index 0000000..1efd552
--- /dev/null
+++ b/ds9/parsers/numeric.fin
@@ -0,0 +1,7 @@
+# INT
+[+-]?{D}+ {set yylval $yytext; return $INT_}
+
+# REAL
+[+-]?{D}+"."?({E})? |
+[+-]?{D}*"."{D}+({E})? {set yylval $yytext; return $REAL_}
+