parser should warn and exit when undeclared variables are used

Issue #98 resolved
Jochem Snuverink created an issue

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)

  1. Jochem Snuverink reporter

    This has been fixed. The code will exit.

    Furthermore if a variable is redefined when a previous value existed a warning is given.

  2. Log in to comment