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
76
77
78
|
%{
%}
#include def.tin
#include coordsys.tin
#include wcssys.tin
%start viewsend
%token BUTTONS_
%token COLORBAR_
%token COLORBARNUMERICS_
%token FILENAME_
%token FRAME_
%token GRAPH_
%token HORIZONTAL_
%token HORZGRAPH_
%token INFO_
%token KEYWORD_
%token KEYVALUE_
%token LAYOUT_
%token LOWHIGH_
%token MAGNIFIER_
%token MINMAX_
%token OBJECT_
%token PANNER_
%token UNITS_
%token VERTGRAPH_
%token VERTICAL_
%%
#include coordsys.trl
#include wcssys.trl
viewsend :
| LAYOUT_ {ProcessSendCmdGet view layout}
| KEYVALUE_ {ProcessSendCmdGet view info,keyvalue}
| INFO_ {ProcessSendCmdYesNo view info}
| PANNER_ {ProcessSendCmdYesNo view panner}
| MAGNIFIER_ {ProcessSendCmdYesNo view magnifier}
| BUTTONS_ {ProcessSendCmdYesNo view buttons}
| COLORBAR_ {ProcessSendCmdYesNo view colorbar}
# backward compatibility
| COLORBARNUMERICS_ {ProcessSendCmdYesNo colorbar numerics}
| GRAPH_ graph
# backward compatibility
| HORZGRAPH_ {ProcessSendCmdYesNo view graph,horz}
# backward compatibility
| VERTGRAPH_ {ProcessSendCmdYesNo view graph,graph}
| FILENAME_ {ProcessSendCmdYesNo view info,filename}
| OBJECT_ {ProcessSendCmdYesNo view info,object}
| KEYWORD_ {ProcessSendCmdYesNo view info,keyword}
| MINMAX_ {ProcessSendCmdYesNo view info,minmax}
| LOWHIGH_ {ProcessSendCmdYesNo view info,lowhigh}
| UNITS_ {ProcessSendCmdYesNo view info,bunit}
| coordsys {ProcessSendCmdYesNo view info,$1}
| wcssys {ProcessSendCmdYesNo view info,$1}
| FRAME_ {ProcessSendCmdYesNo view info,frame}
;
graph :
| HORIZONTAL_ {ProcessSendCmdYesNo view graph,horz}
| VERTICAL_ {ProcessSendCmdYesNo view graph,vert}
;
%%
proc viewsend::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|