blob: 6fbb0ad0100d290a41baff2a52109fffd5405bc9 (
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
|
import type_options
/*
This file for the log statments that relates to each diffrent applications
*/
SpecialCommand:
writer_command | calc_command
;
/*
This part for all the writer log statments:
1) Type
2) Select
3) Set zoom
4) GOTO page
then we can add whatever we need in the future
*/
writer_command:
Type_command | Select_command | setZoom_command | GOTO_command
;
Type_command:
'Type on writer' what_to_type=Type_options
;
Select_command:
'Select from Pos' from=INT 'to Pos' to=INT
;
setZoom_command:
'Set Zoom to be' zoom_value=INT
;
GOTO_command:
'GOTO page number' page_num=INT
;
//=================================================================//
/*
This part for all the calc log statments:
1) select sheet
2) Select cell or range
3) launch AutoFill
then we can add whatever we need in the future
*/
calc_command:
calc_Type_command | switch_sheet | Select_cell | AutoFill_filter
;
calc_Type_command:
'Type on current cell' what_to_type=Type_options
;
switch_sheet:
'Switch to sheet number' sheet_num=INT
;
Select_cell:
'Select from calc' select_op=select_options
;
AutoFill_filter:
'Lanuch AutoFilter from Col' col_num=INT 'and Row' row_num=INT
;
//this is the select options
select_options:
one_cell | range_of_cells
;
range_of_cells:
'{' '"RANGE":' input_range=STRING '}'
;
one_cell:
'{' '"CELL":' input_cell=STRING '}'
;
//=================================================================//
|