blob: 23b9bef14fef3d96120eefff719a58774b3d8790 (
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
|
%{
%}
#include def.tin
#include string.tin
%start analysissend
%token ENTRY_
%token MESSAGE_
%token MODE_
%token TASK_
%token LOCK_
%token OK_
%token OKCANCEL_
%token YESNO_
%%
analysissend : {AnalysisSendCmd}
| ENTRY_ STRING_ {AnalysisSendCmdEntry $2}
| MESSAGE_ type STRING_ {AnalysisSendCmdMessage $2 $3}
| MODE_ {ProcessSendCmdGet ime task}
| TASK_ {AnalysisSendCmdTask}
| LOCK_ {ProcessSendCmdGet ime lock}
;
type : {set _ ok}
| OK_ {set _ ok}
| OKCANCEL_ {set _ okcancel}
| YESNO_ {set _ yesno}
;
%%
proc analysissend::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|