summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/scalesendparser.tac
blob: cc11c11b4122097f574dda4d238e15e26271dbde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%{
%}
#include def.tin

%start scalesend

%token DATASEC_
%token EXP_
%token LIMITS_
%token LOCK_
%token LOG_
%token MODE_
%token SCALELIMITS_
%token SCOPE_

%%

scalesend : {ProcessSendCmdGet scale type}
 | LOCK_ {ProcessSendCmdYesNo scale lock}
 | LOCK_ LIMITS_ {ProcessSendCmdYesNo scale lock,limits}
 | DATASEC_ {ProcessSendCmdGet scale datasec}
 | LIMITS_ {ProcessSendCmdCurrent "get clip"}
# backward compatibility
 | SCALELIMITS_ {ProcessSendCmdCurrent "get clip"}
 | MODE_ {ProcessSendCmdGet scale mode}
 | SCOPE_ {ProcessSendCmdGet scale scope}
 | LOG_ EXP_ {ProcessSendCmdGet scale log}
# backward compatibility
 | LOG_ {ProcessSendCmdGet scale log}
 ;

%%

proc scalesend::yyerror {msg} {
     variable yycnt
     variable yy_current_buffer
     variable index_

     ParserError $msg $yycnt $yy_current_buffer $index_
}