diff options
Diffstat (limited to 'ds9/parsers/coords.fin')
-rw-r--r-- | ds9/parsers/coords.fin | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ds9/parsers/coords.fin b/ds9/parsers/coords.fin index 3c72e46..394be49 100644 --- a/ds9/parsers/coords.fin +++ b/ds9/parsers/coords.fin @@ -38,3 +38,15 @@ j2000 {return $FK5_} galactic {return $GALACTIC_} ecliptic {return $ECLIPTIC_} +# 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_} + |