summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/masksendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-19 18:19:46 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-19 18:19:46 (GMT)
commit3fb5597b67427c147608087f99f3d24c2d2dd6ad (patch)
tree46a44fe634fead32ee2b664a7b56489e00a625a4 /ds9/parsers/masksendparser.tac
parent69a0db6f952dbb1c0359667cbec48407770083d2 (diff)
downloadblt-3fb5597b67427c147608087f99f3d24c2d2dd6ad.zip
blt-3fb5597b67427c147608087f99f3d24c2d2dd6ad.tar.gz
blt-3fb5597b67427c147608087f99f3d24c2d2dd6ad.tar.bz2
add ds9 mask send parser
Diffstat (limited to 'ds9/parsers/masksendparser.tac')
-rw-r--r--ds9/parsers/masksendparser.tac25
1 files changed, 25 insertions, 0 deletions
diff --git a/ds9/parsers/masksendparser.tac b/ds9/parsers/masksendparser.tac
new file mode 100644
index 0000000..3feb109
--- /dev/null
+++ b/ds9/parsers/masksendparser.tac
@@ -0,0 +1,25 @@
+%{
+%}
+
+%start masksend
+
+%token COLOR_
+%token MARK_
+%token TRANSPARENCY_
+
+%%
+
+masksend : COLOR_ {ProcessSendCmdGet mask color}
+ | MARK_ {ProcessSendCmdGet mask mark}
+ | TRANSPARENCY_ {ProcessSendCmdGet mask transparency}
+ ;
+
+%%
+
+proc masksend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}