summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/binsendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-31 17:27:58 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-31 17:27:58 (GMT)
commitf622a7b9c71902acc1d6914510a86a26eb3608d3 (patch)
tree8bfe7fa11439e2a43955f7982d2276e17a6058ba /ds9/parsers/binsendparser.tac
parent68409ff3a87e74b06307f782a0b1343d58a0e614 (diff)
downloadblt-f622a7b9c71902acc1d6914510a86a26eb3608d3.zip
blt-f622a7b9c71902acc1d6914510a86a26eb3608d3.tar.gz
blt-f622a7b9c71902acc1d6914510a86a26eb3608d3.tar.bz2
update ds9 bin parser
Diffstat (limited to 'ds9/parsers/binsendparser.tac')
-rw-r--r--ds9/parsers/binsendparser.tac35
1 files changed, 35 insertions, 0 deletions
diff --git a/ds9/parsers/binsendparser.tac b/ds9/parsers/binsendparser.tac
new file mode 100644
index 0000000..859551d
--- /dev/null
+++ b/ds9/parsers/binsendparser.tac
@@ -0,0 +1,35 @@
+%{
+%}
+
+#include string.tin
+
+%token ABOUT_
+%token BUFFERSIZE_
+%token COLS_
+%token DEPTH_
+%token FACTOR_
+%token FILTER_
+%token FUNCTION_
+%token LOCK_
+
+%%
+
+binsend : LOCK_ {ProcessSendCmdYesNo bin lock}
+ | ABOUT_ {ProcessSendCmdCurrent "get bin cursor"}
+ | BUFFERSIZE_ {ProcessSendCmdGet bin buffersize}
+ | COLS_ {ProcessSendCmdCurrent "get bin cols"}
+ | FACTOR_ {ProcessSendCmdGet bin factor}
+ | DEPTH_ {ProcessSendCmdGet bin depth}
+ | FILTER_ {ProcessSendCmdCurrent "get bin filter"}
+ | FUNCTION_ {ProcessSendCmdGet bin function}
+ ;
+
+%%
+
+proc binsend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}