blob: 7e018751007c79546f0e15c323f5821e9c8c2f50 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
%{
%}
#include coords.tin
#include yesno.tin
#include numeric.tin
#include string.tin
%start command
%token AXES_
%token BIN_
%token BLOCK_
%token BLUE_
%token CHANNEL_
%token CLOSE_
%token COLORBAR_
%token CROP_
%token GREEN_
%token LOCK_
%token OPEN_
%token RED_
%token SCALE_
%token SCALELIMITS_
%token SLICE_
%token SMOOTH_
%token SYSTEM_
%token VIEW_
%%
#include coords.trl
#include yesno.trl
#include numeric.trl
command : rgb
| rgb {yyclearin; YYACCEPT} STRING_
;
rgb : {CreateRGBFrame}
| OPEN_ {}
| CLOSE_ {RGBDestroyDialog}
| channel {CurrentCmdSet rgb $1 RGBChannel}
| CHANNEL_ channel {CurrentCmdSet rgb $2 RGBChannel}
| LOCK_ lock yesno {RGBCmdSet $2 $3}
| SYSTEM_ wcssys {RGBCmdSet system $2 RGBSystem}
| VIEW_ channel yesno {RGBCmdSet $2 $3 RGBView}
;
channel : RED_ {set _ red}
| GREEN_ {set _ green}
| BLUE_ {set _ blue}
;
lock : WCS_ {set _ lock,wcs}
| CROP_ {set _ lock,crop}
| SLICE_ {set _ lock,slice}
| BIN_ {set _ lock,bin}
| AXES_ {set _ lock,axes}
| SCALE_ {set _ lock,scale}
| SCALELIMITS_ {set _ lock,scalelimits}
| COLORBAR_ {set _ lock,colorbar}
| BLOCK_ {set _ lock,block}
| SMOOTH_ {set _ lock,smooth}
;
%%
proc rgb::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|