summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/pssendparser.tac
blob: d87b967d81a7631a2f2a024f90265791c7c6bc6a (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
%{
%}
#include def.tin

%start pssend

%token COLOR_
%token COMMAND_
%token DESTINATION_
%token FILENAME_
%token INTERPOLATE_
%token LEVEL_
%token RESOLUTION_

%%

pssend : DESTINATION_ {ProcessSendCmdGet ps dest}
 | COMMAND_ {ProcessSendCmdGet ps cmd}
 | FILENAME_ {ProcessSendCmdGet ps filename}
 | COLOR_ {ProcessSendCmdGet ps color}
 | LEVEL_ {ProcessSendCmdGet ps level}
 | RESOLUTION_ {ProcessSendCmdGet ps resolution}
#backward compatibility
 | INTERPOLATE_ {global ps; $parse(proc) $parse(id) "0\n"}
 ;

%%

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

     ParserError $msg $yycnt $yy_current_buffer $index_
}