- changed status to resolved
parser should warn and exit when undeclared variables are used
Issue #98
resolved
See title. Right now the following works in the parser:
a = 1;
c = a * b; // c will be 0 since b is not declared before and initialised to 0
it would be better if an error is given for the non-declared b.
Comments (1)
-
reporter - Log in to comment
This has been fixed. The code will exit.
Furthermore if a variable is redefined when a previous value existed a warning is given.