Skip to content
Snippets Groups Projects
Commit cbbf958d authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add location of variable creation to attributes of symbol tale

Additionally store position of the end of the declaration instruction so that
when searching a symbol in a table one also check that the declaration point has
been passed.

This fix issues generated by the storage of symbol tables within node
description. The following code is now interpreted correctly

``
Z x = 1;
{
  Z x = x + 1;
  cout << x << "\n";
}
cout << x << "\n";
``

It now produces the expected output

``
2
1
``
parent 33a8c696
No related branches found
No related tags found
1 merge request!37Feature/language
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment