summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/cubeparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-08 17:45:01 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-08 17:45:01 (GMT)
commitfecfcf5f0ddf53b21a1f264fc71873fbe4ec4192 (patch)
treecfef6c4f24996ebbbca7f39d87338aa59bae4b8c /ds9/parsers/cubeparser.tac
parent3cf328254182c428cd2902c42c6c37d13b711dab (diff)
downloadblt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.zip
blt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.tar.gz
blt-fecfcf5f0ddf53b21a1f264fc71873fbe4ec4192.tar.bz2
update ds9 parsers
Diffstat (limited to 'ds9/parsers/cubeparser.tac')
-rw-r--r--ds9/parsers/cubeparser.tac15
1 files changed, 13 insertions, 2 deletions
diff --git a/ds9/parsers/cubeparser.tac b/ds9/parsers/cubeparser.tac
index 0a43504..671bbc4 100644
--- a/ds9/parsers/cubeparser.tac
+++ b/ds9/parsers/cubeparser.tac
@@ -1,7 +1,6 @@
%{
%}
-#include matchlock.tin
#include coordsys.tin
#include wcssys.tin
#include yesno.tin
@@ -16,7 +15,10 @@
%token FIRST_
%token INTERVAL_
%token LAST_
+%token LOCK_
+%token MATCH_
%token NEXT_
+%token NONE_
%token OPEN_
%token ORDER_
%token PLAY_
@@ -32,7 +34,6 @@
%%
-#include matchlock.trl
#include coordsys.trl
#include wcssys.trl
#include yesno.trl
@@ -71,6 +72,16 @@ orderAxes : 123_ {set _ 123}
| 321_ {set _ 321}
;
+lockslice : {set _ image}
+ | IMAGE_ {set _ image}
+ | wcssys {set _ $1}
+ | NONE_ {set _ none}
+ ;
+
+matchslice : IMAGE_ {set _ image}
+ | wcssys {set _ $1}
+ ;
+
%%
proc cube::yyerror {msg} {