diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-06-05 20:08:38 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-06-05 20:08:38 (GMT) |
commit | 5e379797126ae52c57fa5fb8e8d3984e6a0a359e (patch) | |
tree | 519fea1835e9da7799626fd3b98ff944b6eda9eb /ds9/parsers/zscalesendparser.tac | |
parent | 3379de35277197a1e5b31e508a68dcf523afebac (diff) | |
download | blt-5e379797126ae52c57fa5fb8e8d3984e6a0a359e.zip blt-5e379797126ae52c57fa5fb8e8d3984e6a0a359e.tar.gz blt-5e379797126ae52c57fa5fb8e8d3984e6a0a359e.tar.bz2 |
add ds9 send scale, minmax, zscale parsers
Diffstat (limited to 'ds9/parsers/zscalesendparser.tac')
-rw-r--r-- | ds9/parsers/zscalesendparser.tac | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ds9/parsers/zscalesendparser.tac b/ds9/parsers/zscalesendparser.tac new file mode 100644 index 0000000..a3ebd96 --- /dev/null +++ b/ds9/parsers/zscalesendparser.tac @@ -0,0 +1,27 @@ +%{ +%} + +#include string.tin + +%start zscalesend + +%token CONTRAST_ +%token SAMPLE_ +%token LINE_ + +%% + +zscalesend : CONTRAST_ {ProcessSendCmdGet zscale contrast} + | SAMPLE_ {ProcessSendCmdGet zscale sample} + | LINE_ {ProcessSendCmdGet zscale line} + ; + +%% + +proc zscalesend::yyerror {msg} { + variable yycnt + variable yy_current_buffer + variable index_ + + ParserError $msg $yycnt $yy_current_buffer $index_ +} |