M
marian.edu
Guest
Well, in their defence in compilers and parsers in general is not always easy to recover and come up with a meaningful error message
Say after ‘then’, if you don’t open a block, there can only be a single statement… no idea how they treat annotations but for the parser is probably just yet another ‘statement’, only that it probably doesn’t even expect annotation statement to be a valid single statement. Aka, annotation is not of that kind but maybe a special kind of statement that parser only expect in a block so it tries to parse that as a ‘single statement’ - trying simple assignment, execute statement, etc in one particular order and when all fails it has to give an error only there was not even a partial match there so it’s probably just using the error from last attempt. Damn, I’m already probably using ‘probably’ too much so will probably stop here
Marian Edu Acorn IT www.acorn-it.com www.akera.io +40 740 036 212
Continue reading...
Continue reading...