diff options
Diffstat (limited to 'ds9/parsers')
-rw-r--r-- | ds9/parsers/nreslex.fcl | 5 | ||||
-rw-r--r-- | ds9/parsers/nresparser.tac | 12 |
2 files changed, 10 insertions, 7 deletions
diff --git a/ds9/parsers/nreslex.fcl b/ds9/parsers/nreslex.fcl index bd8aad9..a21cd7a 100644 --- a/ds9/parsers/nreslex.fcl +++ b/ds9/parsers/nreslex.fcl @@ -22,8 +22,9 @@ simbad-cds {return $SIMBADCDS_} vizier-sao {return $VIZIERSAO_} vizier-cds {return $VIZIERCDS_} -#include coords.fin -#include numeric.fin +degrees {return $DEGREES_} +sexagesimal {return $SEXAGESIMAL_} + #include string.fin %% diff --git a/ds9/parsers/nresparser.tac b/ds9/parsers/nresparser.tac index 7bf80b4..f5728a1 100644 --- a/ds9/parsers/nresparser.tac +++ b/ds9/parsers/nresparser.tac @@ -1,8 +1,6 @@ %{ %} -#include coords.tin -#include numeric.tin #include string.tin %start command @@ -22,10 +20,10 @@ %token VIZIERSAO_ %token VIZIERCDS_ -%% +%token DEGREES_ +%token SEXAGESIMAL_ -#include coords.trl -#include numeric.trl +%% command : nres | nres {yyclearin; YYACCEPT} STRING_ @@ -41,6 +39,10 @@ nres : OPEN_ | STRING_ {ProcessCmdSet dnres name $1 "NRESApply dnres 1"} ; +skyformat : DEGREES_ {set _ degrees} + | SEXAGESIMAL_ {set _ sexagesimal} + ; + server : NEDSAO_ {set _ ned-sao} | NEDCDS_ {set _ ned-cds} | SIMBADSAO_ {set _ simbad-sao} |