blob: 9f68a9c692c8a695a10cb0279f520cbc137b8677 (
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
|
%{
%}
#include def.tin
#include string.tin
%start command
%token CLOSE_
%token CROSSHAIR_
%token NAME_
%token OPEN_
%token PAN_
%token SERVER_
%token SKYFORMAT_
%token NEDSAO_
%token NEDCDS_
%token SIMBADSAO_
%token SIMBADCDS_
%token VIZIERSAO_
%token VIZIERCDS_
%token DEGREES_
%token SEXAGESIMAL_
%%
command : nres
| nres {yyclearin; YYACCEPT} STRING_
;
nres : OPEN_
| CLOSE_ {ARDestroy dnres}
| SERVER_ server {ProcessCmdSet pnres server $2}
| PAN_ {NRESPan dnres}
| CROSSHAIR_ {NRESCrosshair dnres}
| SKYFORMAT_ skyformat {ProcessCmdSet2 dnres skyformat $2 format,msg $2}
| NAME_ STRING_ {ProcessCmdSet dnres name $2 "NRESApply dnres 1"}
| STRING_ {ProcessCmdSet dnres name $1 "NRESApply dnres 1"}
;
skyformat : DEGREES_ {set _ degrees}
| SEXAGESIMAL_ {set _ sexagesimal}
;
server : NEDSAO_ {set _ ned-sao}
| NEDCDS_ {set _ ned-cds}
| SIMBADSAO_ {set _ simbad-sao}
| SIMBADCDS_ {set _ simbad-cds}
| VIZIERSAO_ {set _ vizier-sao}
| VIZIERCDS_ {set _ vizier-cds}
;
%%
proc nres::yyerror {msg} {
variable yycnt
variable yy_current_buffer
variable index_
ParserError $msg $yycnt $yy_current_buffer $index_
}
|