blob: a83b3e5cbb69e08da7d80d026d45eb09194fedd6 (
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
|
%{
%}
#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_
}
|