summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/wcssendparser.tac
blob: afb6b55ca7be2f496be2b8fe5fee2811501a8931 (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
%{
%}

#include def.tin

%start wcssend

%token ALIGN_
%token SKY_
%token SKYFORMAT_
%token SYSTEM_

%%

wcssend : {ProcessSendCmdGet wcs system}
 | ALIGN_  {ProcessSendCmdYesNo current align}
 | SYSTEM_ {ProcessSendCmdGet wcs system}
 | SKY_ {ProcessSendCmdGet wcs sky}
 | SKYFORMAT_ {ProcessSendCmdGet wcs skyformat}
 ;

%%

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

     ParserError $msg $yycnt $yy_current_buffer $index_
}