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.
Files changed (117) hide show
  1. opencrbasic/__init__.py +3 -0
  2. opencrbasic/__main__.py +5 -0
  3. opencrbasic/analysis.py +184 -0
  4. opencrbasic/bindings.py +1034 -0
  5. opencrbasic/catalog.py +173 -0
  6. opencrbasic/checkconfig.py +144 -0
  7. opencrbasic/checker/__init__.py +977 -0
  8. opencrbasic/checker/cr3xx.py +3118 -0
  9. opencrbasic/checker/ess.py +81 -0
  10. opencrbasic/checker/expressions.py +3581 -0
  11. opencrbasic/checker/instr_data.py +1802 -0
  12. opencrbasic/checker/instr_measure.py +1547 -0
  13. opencrbasic/checker/instr_rules.py +3540 -0
  14. opencrbasic/checker/instructions.py +17 -0
  15. opencrbasic/checker/intervals.py +678 -0
  16. opencrbasic/checker/longconv.py +133 -0
  17. opencrbasic/checker/scan_time.py +580 -0
  18. opencrbasic/checker/storage.py +456 -0
  19. opencrbasic/checker/structs.py +240 -0
  20. opencrbasic/checker/structure.py +6213 -0
  21. opencrbasic/checker/symbols.py +609 -0
  22. opencrbasic/checker/terminals.py +249 -0
  23. opencrbasic/checker/unused.py +186 -0
  24. opencrbasic/checker/var_types.py +564 -0
  25. opencrbasic/checker/warnings.py +661 -0
  26. opencrbasic/checks.py +491 -0
  27. opencrbasic/cli.py +391 -0
  28. opencrbasic/commands.py +128 -0
  29. opencrbasic/compiler.py +320 -0
  30. opencrbasic/consteval.py +327 -0
  31. opencrbasic/data/background_calibration.json +4 -0
  32. opencrbasic/data/before_beginprog.json +99 -0
  33. opencrbasic/data/cr1000x/background_calibration.json +4 -0
  34. opencrbasic/data/cr1000x/before_beginprog.json +138 -0
  35. opencrbasic/data/cr1000x/ess_variables.json +1087 -0
  36. opencrbasic/data/cr1000x/fnotch.json +29 -0
  37. opencrbasic/data/cr1000x/functions.json +1337 -0
  38. opencrbasic/data/cr1000x/instructions.json +4836 -0
  39. opencrbasic/data/cr1000x/measure.json +121 -0
  40. opencrbasic/data/cr1000x/mode.json +111 -0
  41. opencrbasic/data/cr1000x/pipeline_tasks.json +88 -0
  42. opencrbasic/data/cr1000x/settings_fields.json +321 -0
  43. opencrbasic/data/cr1000x/status_members.json +318 -0
  44. opencrbasic/data/cr1000x/symbols.json +872 -0
  45. opencrbasic/data/cr1000x/terminals.json +225 -0
  46. opencrbasic/data/cr300/before_beginprog.json +42 -0
  47. opencrbasic/data/cr300/ess_variables.json +1087 -0
  48. opencrbasic/data/cr300/fnotch.json +22 -0
  49. opencrbasic/data/cr300/functions.json +1261 -0
  50. opencrbasic/data/cr300/instructions.json +2837 -0
  51. opencrbasic/data/cr300/measure.json +33 -0
  52. opencrbasic/data/cr300/mode.json +121 -0
  53. opencrbasic/data/cr300/settings_fields.json +259 -0
  54. opencrbasic/data/cr300/status_members.json +303 -0
  55. opencrbasic/data/cr300/symbols.json +584 -0
  56. opencrbasic/data/cr300/terminals.json +193 -0
  57. opencrbasic/data/cr350/before_beginprog.json +44 -0
  58. opencrbasic/data/cr350/ess_variables.json +1087 -0
  59. opencrbasic/data/cr350/fnotch.json +22 -0
  60. opencrbasic/data/cr350/functions.json +1262 -0
  61. opencrbasic/data/cr350/instructions.json +2848 -0
  62. opencrbasic/data/cr350/measure.json +35 -0
  63. opencrbasic/data/cr350/mode.json +121 -0
  64. opencrbasic/data/cr350/settings_fields.json +292 -0
  65. opencrbasic/data/cr350/status_members.json +303 -0
  66. opencrbasic/data/cr350/symbols.json +572 -0
  67. opencrbasic/data/cr350/terminals.json +190 -0
  68. opencrbasic/data/ess_variables.json +1087 -0
  69. opencrbasic/data/fnotch.json +34 -0
  70. opencrbasic/data/functions.json +1337 -0
  71. opencrbasic/data/instructions.json +4965 -0
  72. opencrbasic/data/measure.json +123 -0
  73. opencrbasic/data/mode.json +121 -0
  74. opencrbasic/data/notices_cr6.json +890 -0
  75. opencrbasic/data/pipeline_tasks.json +84 -0
  76. opencrbasic/data/settings_fields.json +322 -0
  77. opencrbasic/data/status_members.json +319 -0
  78. opencrbasic/data/status_table.json +684 -0
  79. opencrbasic/data/symbols.json +902 -0
  80. opencrbasic/data/terminals.json +195 -0
  81. opencrbasic/data/type_codes.json +249 -0
  82. opencrbasic/diagnostics.py +196 -0
  83. opencrbasic/editing.py +827 -0
  84. opencrbasic/formatting.py +310 -0
  85. opencrbasic/helpdocs.py +677 -0
  86. opencrbasic/hover.py +667 -0
  87. opencrbasic/inlay.py +169 -0
  88. opencrbasic/lexer.py +183 -0
  89. opencrbasic/lsp/__init__.py +5 -0
  90. opencrbasic/lsp/__main__.py +7 -0
  91. opencrbasic/lsp/config.py +202 -0
  92. opencrbasic/lsp/features.py +602 -0
  93. opencrbasic/lsp/server.py +741 -0
  94. opencrbasic/lsp/session.py +1189 -0
  95. opencrbasic/lsp/worker.py +128 -0
  96. opencrbasic/mode.py +143 -0
  97. opencrbasic/navigation.py +401 -0
  98. opencrbasic/parser.py +3264 -0
  99. opencrbasic/positions.py +274 -0
  100. opencrbasic/preprocess.py +269 -0
  101. opencrbasic/profiles.py +266 -0
  102. opencrbasic/provenance.py +17 -0
  103. opencrbasic/quickfix.py +331 -0
  104. opencrbasic/rename.py +662 -0
  105. opencrbasic/signature.py +33 -0
  106. opencrbasic/source.py +600 -0
  107. opencrbasic/sources.py +125 -0
  108. opencrbasic/syntax.py +337 -0
  109. opencrbasic/tables.py +2173 -0
  110. opencrbasic/tables_hook.py +14 -0
  111. opencrbasic/tdf.py +142 -0
  112. opencrbasic/timing.py +565 -0
  113. opencrbasic-1.0.0.dist-info/METADATA +223 -0
  114. opencrbasic-1.0.0.dist-info/RECORD +117 -0
  115. opencrbasic-1.0.0.dist-info/WHEEL +4 -0
  116. opencrbasic-1.0.0.dist-info/entry_points.txt +3 -0
  117. 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
+ }