blob: c3cb5c1e1c1e0f7540420b62a28e6b8771c5af8a (
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
48
49
50
51
52
53
54
55
56
57
58
59
|
%{
%}
#include def.tin
%start rgbsend
%token AXES_
%token BIN_
%token BLOCK_
%token BLUE_
%token CHANNEL_
%token COLORBAR_
%token CROP_
%token GREEN_
%token LOCK_
%token RED_
%token SCALE_
%token SCALELIMITS_
%token SLICE_
%token SMOOTH_
%token SYSTEM_
%token VIEW_
%token WCS_
%%
rgbsend : CHANNEL_ {ProcessSendCmdGet current rgb}
| LOCK_ lock {ProcessSendCmdYesNo rgb lock,$2}
| SYSTEM_ {ProcessSendCmdGet rgb system}
| VIEW_ view {ProcessSendCmdYesNo rgb $2}
;
lock : WCS_ {set _ wcs}
| CROP_ {set _ crop}
| SLICE_ {set _ slice}
| BIN_ {set _ bin}
| AXES_ {set _ axes}
| SCALE_ {set _ scale}
| SCALELIMITS_ {set _ scalelimits}
| COLORBAR_ {set _ colorbar}
| BLOCK_ {set _ block}
| SMOOTH_ {set _ smooth}
;
view : RED_ {set _ red}
| GREEN_ {set _ green}
| BLUE_ {set _ blue}
;
%%
proc rgbsend::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|