diff options
Diffstat (limited to 'ds9/parsers/sexstr.fin')
-rw-r--r-- | ds9/parsers/sexstr.fin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ds9/parsers/sexstr.fin b/ds9/parsers/sexstr.fin new file mode 100644 index 0000000..6a91acc --- /dev/null +++ b/ds9/parsers/sexstr.fin @@ -0,0 +1,11 @@ +# SEXAGESIMAL +[+-]?{D}+:{D}+:{D}+"."? | +[+-]?{D}+:{D}+:{D}*"."{D}+ {set yylval $yytext; return $SEXSTR_} + +# HMS +[+-]?{D}+h{D}+m{D}+"."?s | +[+-]?{D}+h{D}+m{D}*"."{D}+s {set yylval $yytext; return $HMSSTR_} + +# DMS +[+-]?{D}+d{D}+m{D}+"."?s | +[+-]?{D}+d{D}+m{D}*"."{D}+s {set yylval $yytext; return $SMSSTR_} |