opencrbasic 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opencrbasic/__init__.py +3 -0
- opencrbasic/__main__.py +5 -0
- opencrbasic/analysis.py +184 -0
- opencrbasic/bindings.py +1034 -0
- opencrbasic/catalog.py +173 -0
- opencrbasic/checkconfig.py +144 -0
- opencrbasic/checker/__init__.py +977 -0
- opencrbasic/checker/cr3xx.py +3118 -0
- opencrbasic/checker/ess.py +81 -0
- opencrbasic/checker/expressions.py +3581 -0
- opencrbasic/checker/instr_data.py +1802 -0
- opencrbasic/checker/instr_measure.py +1547 -0
- opencrbasic/checker/instr_rules.py +3540 -0
- opencrbasic/checker/instructions.py +17 -0
- opencrbasic/checker/intervals.py +678 -0
- opencrbasic/checker/longconv.py +133 -0
- opencrbasic/checker/scan_time.py +580 -0
- opencrbasic/checker/storage.py +456 -0
- opencrbasic/checker/structs.py +240 -0
- opencrbasic/checker/structure.py +6213 -0
- opencrbasic/checker/symbols.py +609 -0
- opencrbasic/checker/terminals.py +249 -0
- opencrbasic/checker/unused.py +186 -0
- opencrbasic/checker/var_types.py +564 -0
- opencrbasic/checker/warnings.py +661 -0
- opencrbasic/checks.py +491 -0
- opencrbasic/cli.py +391 -0
- opencrbasic/commands.py +128 -0
- opencrbasic/compiler.py +320 -0
- opencrbasic/consteval.py +327 -0
- opencrbasic/data/background_calibration.json +4 -0
- opencrbasic/data/before_beginprog.json +99 -0
- opencrbasic/data/cr1000x/background_calibration.json +4 -0
- opencrbasic/data/cr1000x/before_beginprog.json +138 -0
- opencrbasic/data/cr1000x/ess_variables.json +1087 -0
- opencrbasic/data/cr1000x/fnotch.json +29 -0
- opencrbasic/data/cr1000x/functions.json +1337 -0
- opencrbasic/data/cr1000x/instructions.json +4836 -0
- opencrbasic/data/cr1000x/measure.json +121 -0
- opencrbasic/data/cr1000x/mode.json +111 -0
- opencrbasic/data/cr1000x/pipeline_tasks.json +88 -0
- opencrbasic/data/cr1000x/settings_fields.json +321 -0
- opencrbasic/data/cr1000x/status_members.json +318 -0
- opencrbasic/data/cr1000x/symbols.json +872 -0
- opencrbasic/data/cr1000x/terminals.json +225 -0
- opencrbasic/data/cr300/before_beginprog.json +42 -0
- opencrbasic/data/cr300/ess_variables.json +1087 -0
- opencrbasic/data/cr300/fnotch.json +22 -0
- opencrbasic/data/cr300/functions.json +1261 -0
- opencrbasic/data/cr300/instructions.json +2837 -0
- opencrbasic/data/cr300/measure.json +33 -0
- opencrbasic/data/cr300/mode.json +121 -0
- opencrbasic/data/cr300/settings_fields.json +259 -0
- opencrbasic/data/cr300/status_members.json +303 -0
- opencrbasic/data/cr300/symbols.json +584 -0
- opencrbasic/data/cr300/terminals.json +193 -0
- opencrbasic/data/cr350/before_beginprog.json +44 -0
- opencrbasic/data/cr350/ess_variables.json +1087 -0
- opencrbasic/data/cr350/fnotch.json +22 -0
- opencrbasic/data/cr350/functions.json +1262 -0
- opencrbasic/data/cr350/instructions.json +2848 -0
- opencrbasic/data/cr350/measure.json +35 -0
- opencrbasic/data/cr350/mode.json +121 -0
- opencrbasic/data/cr350/settings_fields.json +292 -0
- opencrbasic/data/cr350/status_members.json +303 -0
- opencrbasic/data/cr350/symbols.json +572 -0
- opencrbasic/data/cr350/terminals.json +190 -0
- opencrbasic/data/ess_variables.json +1087 -0
- opencrbasic/data/fnotch.json +34 -0
- opencrbasic/data/functions.json +1337 -0
- opencrbasic/data/instructions.json +4965 -0
- opencrbasic/data/measure.json +123 -0
- opencrbasic/data/mode.json +121 -0
- opencrbasic/data/notices_cr6.json +890 -0
- opencrbasic/data/pipeline_tasks.json +84 -0
- opencrbasic/data/settings_fields.json +322 -0
- opencrbasic/data/status_members.json +319 -0
- opencrbasic/data/status_table.json +684 -0
- opencrbasic/data/symbols.json +902 -0
- opencrbasic/data/terminals.json +195 -0
- opencrbasic/data/type_codes.json +249 -0
- opencrbasic/diagnostics.py +196 -0
- opencrbasic/editing.py +827 -0
- opencrbasic/formatting.py +310 -0
- opencrbasic/helpdocs.py +677 -0
- opencrbasic/hover.py +667 -0
- opencrbasic/inlay.py +169 -0
- opencrbasic/lexer.py +183 -0
- opencrbasic/lsp/__init__.py +5 -0
- opencrbasic/lsp/__main__.py +7 -0
- opencrbasic/lsp/config.py +202 -0
- opencrbasic/lsp/features.py +602 -0
- opencrbasic/lsp/server.py +741 -0
- opencrbasic/lsp/session.py +1189 -0
- opencrbasic/lsp/worker.py +128 -0
- opencrbasic/mode.py +143 -0
- opencrbasic/navigation.py +401 -0
- opencrbasic/parser.py +3264 -0
- opencrbasic/positions.py +274 -0
- opencrbasic/preprocess.py +269 -0
- opencrbasic/profiles.py +266 -0
- opencrbasic/provenance.py +17 -0
- opencrbasic/quickfix.py +331 -0
- opencrbasic/rename.py +662 -0
- opencrbasic/signature.py +33 -0
- opencrbasic/source.py +600 -0
- opencrbasic/sources.py +125 -0
- opencrbasic/syntax.py +337 -0
- opencrbasic/tables.py +2173 -0
- opencrbasic/tables_hook.py +14 -0
- opencrbasic/tdf.py +142 -0
- opencrbasic/timing.py +565 -0
- opencrbasic-1.0.0.dist-info/METADATA +223 -0
- opencrbasic-1.0.0.dist-info/RECORD +117 -0
- opencrbasic-1.0.0.dist-info/WHEEL +4 -0
- opencrbasic-1.0.0.dist-info/entry_points.txt +3 -0
- opencrbasic-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"channels": {
|
|
3
|
+
"diff_chan": {
|
|
4
|
+
"min": 1,
|
|
5
|
+
"max": 3,
|
|
6
|
+
"transform": "none",
|
|
7
|
+
"skip_nonpositive": true,
|
|
8
|
+
"message": "Channel {v} exceeds number of valid channels."
|
|
9
|
+
},
|
|
10
|
+
"se_chan": {
|
|
11
|
+
"min": 1,
|
|
12
|
+
"max": 6,
|
|
13
|
+
"transform": "none",
|
|
14
|
+
"skip_nonpositive": true,
|
|
15
|
+
"message": "Channel {v} exceeds number of valid channels."
|
|
16
|
+
},
|
|
17
|
+
"port_1_102": {
|
|
18
|
+
"string_int_min": true,
|
|
19
|
+
"min": 1,
|
|
20
|
+
"max": 102,
|
|
21
|
+
"transform": "none",
|
|
22
|
+
"skip_nonpositive": false,
|
|
23
|
+
"message": "Invalid port specified {v}"
|
|
24
|
+
},
|
|
25
|
+
"port_le8": {
|
|
26
|
+
"ranges": [
|
|
27
|
+
[
|
|
28
|
+
-Infinity,
|
|
29
|
+
8
|
|
30
|
+
]
|
|
31
|
+
],
|
|
32
|
+
"transform": "none",
|
|
33
|
+
"skip_nonpositive": false,
|
|
34
|
+
"message": "Invalid port specified {v}"
|
|
35
|
+
},
|
|
36
|
+
"sdi_port_1_2": {
|
|
37
|
+
"min": 1,
|
|
38
|
+
"max": 2,
|
|
39
|
+
"transform": "none",
|
|
40
|
+
"skip_nonpositive": false,
|
|
41
|
+
"message": "Invalid port {v}, must be 1 or 2"
|
|
42
|
+
},
|
|
43
|
+
"therm_chan": {
|
|
44
|
+
"min": 1,
|
|
45
|
+
"max": 6,
|
|
46
|
+
"transform": "none",
|
|
47
|
+
"skip_nonpositive": true,
|
|
48
|
+
"message": "Channel exceeds number of valid channels."
|
|
49
|
+
},
|
|
50
|
+
"currentse_chan": {
|
|
51
|
+
"min": 1,
|
|
52
|
+
"max": 4,
|
|
53
|
+
"transform": "none",
|
|
54
|
+
"skip_nonpositive": true,
|
|
55
|
+
"message": "Channel {v} exceeds number of valid channels."
|
|
56
|
+
},
|
|
57
|
+
"pulse_chan_span": {
|
|
58
|
+
"ranges": [[1, 2], [3, 6], [8, 8], [9, 9]],
|
|
59
|
+
"transform": "none",
|
|
60
|
+
"truncate": true,
|
|
61
|
+
"skip_nonpositive": false,
|
|
62
|
+
"message": "Invalid PulseCount channel.",
|
|
63
|
+
"secondary_when_invalid": true,
|
|
64
|
+
"span": {"message": "Invalid PulseCount reps.", "invalid_start": 1}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"instructions": {
|
|
68
|
+
"TCDIFF": [
|
|
69
|
+
[
|
|
70
|
+
4,
|
|
71
|
+
"diff_chan",
|
|
72
|
+
2
|
|
73
|
+
]
|
|
74
|
+
],
|
|
75
|
+
"TCSE": [
|
|
76
|
+
[
|
|
77
|
+
4,
|
|
78
|
+
"se_chan",
|
|
79
|
+
2
|
|
80
|
+
]
|
|
81
|
+
],
|
|
82
|
+
"VOLTSE": [
|
|
83
|
+
[
|
|
84
|
+
4,
|
|
85
|
+
"se_chan",
|
|
86
|
+
2
|
|
87
|
+
]
|
|
88
|
+
],
|
|
89
|
+
"VOLTDIFF": [
|
|
90
|
+
[
|
|
91
|
+
4,
|
|
92
|
+
"diff_chan",
|
|
93
|
+
2
|
|
94
|
+
]
|
|
95
|
+
],
|
|
96
|
+
"PORTSET": [
|
|
97
|
+
[
|
|
98
|
+
1,
|
|
99
|
+
"port_1_102"
|
|
100
|
+
]
|
|
101
|
+
],
|
|
102
|
+
"PORTGET": [
|
|
103
|
+
[
|
|
104
|
+
2,
|
|
105
|
+
"port_le8"
|
|
106
|
+
]
|
|
107
|
+
],
|
|
108
|
+
"SDI12RECORDER": [
|
|
109
|
+
[
|
|
110
|
+
2,
|
|
111
|
+
"sdi_port_1_2"
|
|
112
|
+
]
|
|
113
|
+
],
|
|
114
|
+
"BRHALF": [
|
|
115
|
+
[
|
|
116
|
+
4,
|
|
117
|
+
"se_chan",
|
|
118
|
+
2
|
|
119
|
+
]
|
|
120
|
+
],
|
|
121
|
+
"BRHALF3W": [
|
|
122
|
+
[
|
|
123
|
+
4,
|
|
124
|
+
"se_chan",
|
|
125
|
+
2,
|
|
126
|
+
2
|
|
127
|
+
]
|
|
128
|
+
],
|
|
129
|
+
"BRFULL": [
|
|
130
|
+
[
|
|
131
|
+
4,
|
|
132
|
+
"diff_chan",
|
|
133
|
+
2
|
|
134
|
+
]
|
|
135
|
+
],
|
|
136
|
+
"BRHALF4W": [
|
|
137
|
+
[
|
|
138
|
+
5,
|
|
139
|
+
"diff_chan",
|
|
140
|
+
2,
|
|
141
|
+
2
|
|
142
|
+
]
|
|
143
|
+
],
|
|
144
|
+
"BRFULL6W": [
|
|
145
|
+
[
|
|
146
|
+
5,
|
|
147
|
+
"diff_chan",
|
|
148
|
+
2,
|
|
149
|
+
2
|
|
150
|
+
]
|
|
151
|
+
],
|
|
152
|
+
"THERM107": [
|
|
153
|
+
[
|
|
154
|
+
3,
|
|
155
|
+
"therm_chan",
|
|
156
|
+
2
|
|
157
|
+
]
|
|
158
|
+
],
|
|
159
|
+
"THERM108": [
|
|
160
|
+
[
|
|
161
|
+
3,
|
|
162
|
+
"therm_chan",
|
|
163
|
+
2
|
|
164
|
+
]
|
|
165
|
+
],
|
|
166
|
+
"THERM109": [
|
|
167
|
+
[
|
|
168
|
+
3,
|
|
169
|
+
"therm_chan",
|
|
170
|
+
2
|
|
171
|
+
]
|
|
172
|
+
],
|
|
173
|
+
"CURRENTSE": [
|
|
174
|
+
[
|
|
175
|
+
4,
|
|
176
|
+
"se_chan",
|
|
177
|
+
2
|
|
178
|
+
],
|
|
179
|
+
[
|
|
180
|
+
4,
|
|
181
|
+
"currentse_chan",
|
|
182
|
+
2
|
|
183
|
+
]
|
|
184
|
+
],
|
|
185
|
+
"PULSECOUNT": [
|
|
186
|
+
[
|
|
187
|
+
3,
|
|
188
|
+
"pulse_chan_span",
|
|
189
|
+
2
|
|
190
|
+
]
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"instructions": [
|
|
3
|
+
"AVGRUN",
|
|
4
|
+
"AVW200",
|
|
5
|
+
"BATTERY",
|
|
6
|
+
"BROADCAST",
|
|
7
|
+
"CALFILE",
|
|
8
|
+
"CALIBRATE",
|
|
9
|
+
"CALLTABLE",
|
|
10
|
+
"DELAY",
|
|
11
|
+
"DNP",
|
|
12
|
+
"DNPUPDATE",
|
|
13
|
+
"ERASE",
|
|
14
|
+
"ESSINITIALIZE",
|
|
15
|
+
"EXIT",
|
|
16
|
+
"GETVARIABLES",
|
|
17
|
+
"GOESGPS",
|
|
18
|
+
"GOESSETUP",
|
|
19
|
+
"MATRIX",
|
|
20
|
+
"MOVEBYTES",
|
|
21
|
+
"MQTTCONNECT",
|
|
22
|
+
"PANELTEMP",
|
|
23
|
+
"PORTSCONFIG",
|
|
24
|
+
"PORTSET",
|
|
25
|
+
"RANDOMIZE",
|
|
26
|
+
"READ",
|
|
27
|
+
"REALTIME",
|
|
28
|
+
"ROUTERSNEIGHBORS",
|
|
29
|
+
"SDI12RECORDER",
|
|
30
|
+
"SEMAPHOREGET",
|
|
31
|
+
"SEMAPHORERELEASE",
|
|
32
|
+
"SENDDATA",
|
|
33
|
+
"SENDTABLEDEF",
|
|
34
|
+
"SERIALIN",
|
|
35
|
+
"SPLITSTR",
|
|
36
|
+
"SW12",
|
|
37
|
+
"TCPACTIVECONNECTIONS",
|
|
38
|
+
"THERM107",
|
|
39
|
+
"THERM109",
|
|
40
|
+
"TOTALRUN",
|
|
41
|
+
"TRIGGERSEQUENCE",
|
|
42
|
+
"WAITTRIGGERSEQUENCE"
|
|
43
|
+
]
|
|
44
|
+
}
|