-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeywords.js
172 lines (155 loc) · 4.32 KB
/
keywords.js
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/**
* @file NetLinx keywords for tree-sitter
* @license MIT
*/
module.exports = {
// Program and module names
program_name: /program_name/i,
module_name: /module_name/i,
// Section headers
define_device: /define_device/i,
define_combine: /define_combine/i,
define_constant: /define_constant/i,
define_type: /define_type/i,
define_variable: /define_variable/i,
define_system_variable: /define_system_variable/i,
define_connect_level: /define_connect_level/i,
define_latching: /define_latching/i,
define_mutually_exclusive: /define_mutually_exclusive/i,
define_toggling: /define_toggling/i,
define_call: /define_call/i,
define_function: /define_function/i,
define_library_function: /define_library_function/i,
define_start: /define_start/i,
define_event: /define_event/i,
define_program: /define_program/i,
define_module: /define_module/i,
// Types
char: /char/i,
widechar: /widechar/i,
integer: /integer/i,
sinteger: /sinteger/i,
long: /long/i,
slong: /slong/i,
float: /float/i,
double: /double/i,
variant: /variant/i,
variantarray: /variantarray/i,
// Type qualifiers
constant: /constant/i,
volatile: /volatile/i,
non_volatile: /non_volatile/i,
persistent: /persistent/i,
// Storage classes
local_var: /local_var/i,
stack_var: /stack_var/i,
// Control flow
if: /if/i,
else: /else/i,
switch: /switch/i,
case: /case/i,
default: /default/i,
while: /while/i,
for: /for/i,
break: /break/i,
continue: /continue/i,
return: /return/i,
select: /select/i,
active: /active/i,
// Struct
struct: /struct/i,
structure: /structure/i,
// Events Handlers
button_event: /button_event/i,
channel_event: /channel_event/i,
level_event: /level_event/i,
data_event: /data_event/i,
timeline_event: /timeline_event/i,
custom_event: /custom_event/i,
// Events
push: /push/i,
release: /release/i,
hold: /hold/i,
on: /on/i,
off: /off/i,
online: /online/i,
offline: /offline/i,
onerror: /onerror/i,
string: /string/i,
command: /command/i,
standby: /standby/i,
awake: /awake/i,
repeat: /repeat/i,
// Statements
send_level: /send_level/i,
send_string: /send_string/i,
send_command: /send_command/i,
clear_buffer: /clear_buffer/i,
create_buffer: /create_buffer/i,
create_multi_buffer: /create_multi_buffer/i,
call: /call/i,
system_call: /system_call/i,
// Built-in Structured Types
dev: /dev/i,
devlev: /devlev/i,
devchan: /devchan/i,
// Devchan operations
devchan_on: /on/i,
devchan_off: /off/i,
devchan_to: /to/i,
devchan_min_to: /min_to/i,
devchan_total_off: /total_off/i,
devchan_pulse: /pulse/i,
// Objects
channel: /channel/i,
device: /device/i,
number: /number/i,
port: /port/i,
system: /system/i,
sourcedev: /sourcedev/i,
button: /button/i,
input: /input/i,
holdtime: /holdtime/i,
level: /level/i,
value: /value/i,
data: /data/i,
text: /text/i,
sourceipaddress: /sourceipaddress/i,
serveripaddress: /serveripaddress/i,
sourceport: /sourceport/i,
custom: /custom/i,
id: /id/i,
type: /type/i,
flag: /flag/i,
value1: /value1/i,
value2: /value2/i,
value3: /value3/i,
encode: /encode/i,
// Waits
wait: /wait/i,
cancel_wait: /cancel_wait/i,
wait_until: /wait_until/i,
cancel_wait_until: /cancel_wait_until/i,
cancel_all_wait: /cancel_all_wait/i,
cancel_all_wait_until: /cancel_all_wait_until/i,
// Logical
and: /and/i,
or: /or/i,
xor: /xor/i,
not: /not/i,
// Bitwise
band: /band/i,
bor: /bor/i,
bxor: /bxor/i,
bnot: /bnot/i,
lshift: /lshift/i,
rshift: /rshift/i,
// Compiler Keywords
// These are compile time replacements
__file__: /__file__/i, // Filename of the currently executing program file
__date__: /__date__/i, // Date of compilation (MM/DD/YY)
__ldate__: /__ldate__/i, // Date of compilation (MM/DD/YYYY)
__time__: /__time__/i, // Time of compilation (HH:MM:SS)
__line__: /__line__/i, // Contains the line number the keyword is on
__name__: /__name__/i, // Contains the PROGRAM_NAME value found on the first line of the program
};