VenusLibraryDocumentation / SyntaxErrors.rst
theonetruenerd's picture
Upload 43 files
1de6f3f verified
Syntax Errors
=========================
Syntax errors will show up during the analysis of the method and should prevent the method from running. The error code for a syntax error is 4 digits long and should show up along with the line of the HSL file causing the syntax error, whether that is the method or the library. This will then be followed by a line with the runtime error code for syntax errors being present, namely 0x23 - 0x2 - 0x35 (0xa2230035)
Venus Errors
------------------------
- :ref:`1001 : Syntax error <1001>`
- :ref:`1002 : Syntax error before <1002>`
- :ref:`1101 : Missing period <1101>`
- :ref:`1102 : Missing semicolon <1102>`
- :ref:`1103 : Missing assignment <1103>`
- :ref:`1104 : Missing opening parenthesis <1104>`
- :ref:`1105 : Missing closing parenthesis <1105>`
- :ref:`1106 : Missing opening brace <1106>`
- :ref:`1107 : Missing closing brace <1107>`
- :ref:`1108 : Missing opening bracket <1108>`
- :ref:`1109 : Missing closing bracket <1109>`
- :ref:`1110 : Missing comma or closing parenthesis <1110>`
- :ref:`1111 : Missing comma or semicolon <1111>`
- :ref:`1112 : Missing statement <1112>`
- :ref:`1201 : Bad variable declaration <1201>`
- :ref:`1202 : Bad argument list <1202>`
- :ref:`1203 : Bad function name <1203>`
- :ref:`1204 : Bad member function name <1204>`
- :ref:`1205 : Bad argument name <1205>`
- :ref:`1206 : Bad statement <1206>`
- :ref:`1207 : Bad structure name <1207>`
- :ref:`1208 : Bad variable name <1208>`
- :ref:`1209 : Bad subscript expression <1209>`
- :ref:`1210 : Bad member selection <1210>`
- :ref:`1211 : Bad argument statement <1211>`
- :ref:`1212 : Bad member declaration list <1212>`
- :ref:`1213 : Bad variable list <1213>`
- :ref:`1214 : Bad for expression <1214>`
- :ref:`1215 : Bad expression <1215>`
- :ref:`1216 : Bad file name <1216>`
- :ref:`1217 : Bad member declaration <1217>`
- :ref:`1218 : Bad block <1218>`
- :ref:`1219 : Bad number <1219>`
- :ref:`1220 : Bad program <1220>`
- :ref:`1221 : Bad array size <1221>`
- :ref:`1222 : Bad string expression <1222>`
- :ref:`1223 : Bad function reference <1223>`
- :ref:`1224 : Bad sequence expression <1224>`
- :ref:`1225 : Bad array expression <1225>`
- :ref:`1226 : Bad array type <1226>`
- :ref:`1227 : Bad constant <1227>`
- :ref:`1228 : Bad namespace name <1228>`
- :ref:`1229 : Bad object expression <1229>`
- :ref:`1230 : Bad timer expression <1230>`
- :ref:`1231 : Bad event expression <1231>`
- :ref:`1302 : Undeclared identifier <1302>`
- :ref:`1303 : Redefined identifier <1303>`
- :ref:`1304 : Redefined formal parameter <1304>`
- :ref:`1305 : Nested function definition <1305>`
- :ref:`1306 : Nested comments <1306>`
- :ref:`1307 : Unterminated character constant <1307>`
- :ref:`1308 : Unterminated string <1308>`
- :ref:`1309 : No method <1309>`
- :ref:`1310 : Redefined method <1310>`
- :ref:`1311 : Unexpected end of file <1311>`
- :ref:`1312 : Include file not found <1312>`
- :ref:`1313 : Internal error <1313>`
- :ref:`1314 : Empty statement <1314>`
- :ref:`1315 : Too many arguments <1315>`
- :ref:`1316 : Not a member function <1316>`
- :ref:`1317 : Wrong member function <1317>`
- :ref:`1318 : Not a data member <1318>`
- :ref:`1319 : L-value is not a structure identifier <1319>`
- :ref:`1320 : L-value is not an array identifier <1320>`
- :ref:`1321 : L-value is an array identifier <1321>`
- :ref:`1322 : L-value is structure identifier <1322>`
- :ref:`1323 : Integer divide by zero <1323>`
- :ref:`1324 : Not an L-value <1324>`
- :ref:`1325 : Handler undefined <1325>`
- :ref:`1326 : Handler redefined <1326>`
- :ref:`1327 : Type mismatch <1327>`
- :ref:`1328 : Layout file not found <1328>`
- :ref:`1329 : Too few arguments <1329>`
- :ref:`1330 : Instrument not registered <1330>`
- :ref:`1331 : Instrument needs a deck layout <1331>`
- :ref:`1332 : Instrument needs no deck layout <1332>`
- :ref:`1334 : Skipped block initialisation <1334>`
- :ref:`1335 : Parser token buffer overflow <1335>`
- :ref:`1336 : Name too long <1336>`
- :ref:`1337 : Type mismatch in formal parameter <1337>`
- :ref:`1338 : Type mismatch in return value <1338>`
- :ref:`1339 : Must return a value <1339>`
- :ref:`1340 : Redefined workflow <1340>`
- :ref:`1341 : Not schedulable <1341>`
- :ref:`1342 : Private object reference <1342>`
- :ref:`1343 : Private function reference <1343>`
- :ref:`1344 : Analyzing completed with error <1344>`
- :ref:`1345 : Lexer string buffer overflow <1345>`
- :ref:`1346 : Obsolete statement <1346>`