blob: 91c45bb0a66d411595fee42fa48e6cb470af1783 (
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
|
%{
%}
#include def.tin
%start tilesend
%token DIRECTION_
%token GAP_
%token GRID_
%token LAYOUT_
%token MODE_
%%
tilesend: {TileSendCmd}
| MODE_ {ProcessSendCmdGet tile mode}
| GRID_ grid
;
grid : MODE_ {ProcessSendCmdGet tile grid,mode}
| DIRECTION_ {ProcessSendCmdGet tile grid,dir}
| LAYOUT_ {ProcessSendCmdGet tile grid,row}
| GAP_ {ProcessSendCmdGet tile grid,gap}
;
%%
proc tilesend::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|