New line not recognized as separator between statements
This small program
c = 0
j = 1
is not parsed:
textx.exceptions.TextXSyntaxError: vre-language/examples/1.vm:2:3: Expected '[' or '^|;|\,|\)|$' or '**' or '*' or '/' or '+' or '-' or '<=' or '>=' or '>' or '<' or '!=' or '==' or 'if' or 'for' or 'on' or '^|;' or EOF => 'c = 0 j *= 1 '
These modified inputs are parsed:
c = true
j = 1
c = 0
a = 1
So it has to do with c = 0 j
, i.e. the end of line is interpreted as white space and the j
from the next line is consumed.
Edited by Ivan Kondov