summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/colorbarsendparser.tac
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-07 18:05:43 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-07 18:05:43 (GMT)
commit6afd05303f916e56011822d03b29b2b4f9b463ab (patch)
tree3ea839eb0acc7a404f9023db85a5ecc9bd9d12e7 /ds9/parsers/colorbarsendparser.tac
parent2c8f85e6ec1aa94588df630d810ff9b1e25b3f10 (diff)
downloadblt-6afd05303f916e56011822d03b29b2b4f9b463ab.zip
blt-6afd05303f916e56011822d03b29b2b4f9b463ab.tar.gz
blt-6afd05303f916e56011822d03b29b2b4f9b463ab.tar.bz2
add ds9 cmap/colorbar send parsers
Diffstat (limited to 'ds9/parsers/colorbarsendparser.tac')
-rw-r--r--ds9/parsers/colorbarsendparser.tac42
1 files changed, 42 insertions, 0 deletions
diff --git a/ds9/parsers/colorbarsendparser.tac b/ds9/parsers/colorbarsendparser.tac
new file mode 100644
index 0000000..0f27545
--- /dev/null
+++ b/ds9/parsers/colorbarsendparser.tac
@@ -0,0 +1,42 @@
+%{
+%}
+
+#include font.tin
+#include string.tin
+
+%start colorbarsend
+
+%token LOCK_
+%token NUMERICS_
+%token ORIENTATION_
+%token SIZE_
+%token SPACE_
+%token TICKS_
+%token VALUE_
+
+%%
+
+colorbarsend : {ProcessSendCmdYesNo view colorbar}
+ | LOCK_ {ProcessSendCmdYesNo colorbar lock}
+ | ORIENTATION_ {ProcessSendCmdGet colorbar orientation}
+ | NUMERICS_ {ProcessSendCmdYesNo colorbar numerics}
+ | SPACE_ {ColorbarSendCmdSpace}
+ | FONT_ {ProcessSendCmdGet colorbar font}
+ | FONTSIZE_ {ProcessSendCmdGet colorbar font,size}
+ | FONTWEIGHT_ {ProcessSendCmdGet colorbar font,weight}
+ | FONTSLANT_ {ProcessSendCmdGet colorbar font,slant}
+# backward compatibility
+ | FONTSTYLE_ {ProcessSendCmdGet colorbar font,weight}
+ | SIZE_ {ProcessSendCmdGet colorbar size}
+ | TICKS_ {ProcessSendCmdGet colorbar ticks}
+ ;
+
+%%
+
+proc colorbarsend::yyerror {msg} {
+ variable yycnt
+ variable yy_current_buffer
+ variable index_
+
+ ParserError $msg $yycnt $yy_current_buffer $index_
+}