summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/datasendparser.tac
blob: 79f2aafa518b90d3509c7fd8b5051c0ab09e08f5 (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
41
42
43
44
45
46
47
%{
%}
#include def.tin

#include coordsys.tin
#include wcssys.tin
#include skyframe.tin
#include yesno.tin
#include numeric.tin
#include sexstr.tin

%start datasend

%%

#include coordsys.trl
#include wcssys.trl
#include skyframe.trl
#include yesno.trl
#include numeric.trl

datasend : coordsys numeric numeric INT_ INT_ yesno
   {DataSendCmd $1 fk5 $2 $3 $4 $5 $6}
 | wcssys numeric numeric numeric numeric yesno
   {DataSendCmd $1 fk5 $2 $3 $4 $5 $6}
 | skyframe numeric numeric numeric numeric yesno
   {DataSendCmd wcs $1 $2 $3 $4 $5 $6}
 | wcssys skyframe numeric numeric numeric numeric yesno
   {DataSendCmd $1 $2 $3 $4 $5 $6 $7}

 | wcssys SEXSTR_ SEXSTR_ numeric numeric yesno
   {DataSendCmd $1 fk5 $2 $3 $4 $5 $6}
 | skyframe SEXSTR_ SEXSTR_ numeric numeric yesno
   {DataSendCmd wcs $1 $2 $3 $4 $5 $6}
 | wcssys skyframe SEXSTR_ SEXSTR_ numeric numeric yesno
   {DataSendCmd $1 $2 $3 $4 $5 $6 $7}
 ;

%%

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

     ParserError $msg $yycnt $yy_current_buffer $index_
}