Commit Graph

13 Commits

Author SHA1 Message Date
QuentinOchem
0801571bfc Removed two-stages expression evaluations with allocators.
We had an experimental capabilities allowing something like
   child (A or new something ())
to work so that so "A or new someting ()) would first be evaluated on all
child nodes without the allocator as to try to find a match without
allocating, then with the allocator. This ended up only serving very
specific cases - being overall confusing and complicating the code. This
capability is now removed, and the above can be easily refactored into a
more explicit expression:
   child (A) or child (new something ())
2020-09-29 10:43:38 -04:00
QuentinOchem
bec46843a4 Managed "it" property in the context instead of reference.
This uncovered a few hidden errors in the management of frames and
frame contexts:
   - Pop_Frame_Context was missing when capturing a closure
   - Top_Object was not updated when pushing or popping a frame
   - Top_Oject was not properly retreived in function calls
2020-09-27 23:15:47 -04:00
QuentinOchem
9d644bd93d documented and cleaned up frames 2020-09-27 18:44:27 -04:00
QuentinOchem
6c2d5d8b9c further documentation and cleanup in expressions 2020-09-25 22:42:29 -04:00
QuentinOchem
4d53019fd7 documented and cleaned Apply_Template_Section 2020-09-25 12:23:23 -04:00
QuentinOchem
7c0aaf2386 fix copyright notices 2020-09-23 11:19:51 -04:00
QuentinOchem
a4c290c12f finalized documentation and refactor of frames spec 2020-09-22 19:34:29 -04:00
QuentinOchem
17efe736ff making progress on refactoring of Generate_Entity 2020-09-22 14:34:19 -04:00
Quentin Ochem
e5394da7e0 Further refactorings.
The outer action does not need to be a callback, use a regular call with a flag instead.
Renamed command stages not make their role more explicit.
2020-09-20 21:43:08 -04:00
QuentinOchem
37b7452375 resolved OBE TODO's 2020-09-16 16:36:52 -04:00
QuentinOchem
95385ffa6a More refactors and documentation.
Added documentation on commands and expressions.
Introduced a function Top_Context to access to the top context
directly.
2020-09-16 16:26:13 -04:00
QuentinOchem
ad3047b573 moved more frame-related entities together 2020-09-16 14:37:08 -04:00
QuentinOchem
d71ae8a1ba reorganized code into smaller units 2020-09-16 13:06:45 -04:00