Tristan B. V. Kildaire
350ff14586
WIP: Expression dependencies
2 years ago
Tristan B. V. Kildaire
2b2f119fdc
Support for previous commit
2 years ago
Tristan B. V. Kildaire
8b1e1c1db5
Associate variable's and their assignment statements bidirectionally
2 years ago
Tristan B. V. Kildaire
750ec6605c
WIP: Expression dependency generation
2 years ago
Tristan B. V. Kildaire
8e2f7032ad
Added getters and setters for left-hand and right-hand expressions of BinaryOperatorExpression
2 years ago
Tristan B. V. Kildaire
ad374fd7cd
Added new test case
2 years ago
Tristan B. V. Kildaire
c6d0d762e8
Store the left-hand and right-hand expressions for BinaryOperatorExpression
2 years ago
Tristan B. Kildaire
c8ae0e7ae4
Back to where we were last night now
2 years ago
Tristan B. Kildaire
f22df86e39
Damn I spent time making ascii art
2 years ago
Tristan B. Kildaire
54a1b8f247
Introduce new marking, `completed`, means that it has visited during psot-processing
2 years ago
Tristan B. Kildaire
687cf6c92c
Fixed visitation loop detection algorithmn
2 years ago
Tristan B. Kildaire
1b5c783b75
If the class has not been visited then set it as such and return immediately
2 years ago
Tristan B. Kildaire
01684f785e
Use `getType()` instead for resolving types
2 years ago
Tristan B. Kildaire
2ebf2c13cf
Use `getType` instead
2 years ago
Tristan B. Kildaire
7cdd7bc57f
Make variable declarations at the module-level that use class-types depend on their static initialization
2 years ago
Tristan B. Kildaire
3ba469c481
Re-enabled printing of dependency tree
2 years ago
Tristan B. Kildaire
8cdd414dab
Only initialize the parent Container if it is of type Clazz
2 years ago
Tristan B. Kildaire
392fae8088
Debugging segmentation fault now
2 years ago
Tristan B. Kildaire
653495b324
Disabled code generation (for now)
2 years ago
Tristan B. Kildaire
de6687de24
New direction
...
We need to do what we did with data structures for parsing for type checking (dependency checking).
We have pooling sorted now, but we must actually create our own initializer sub-types from DNode (non static vs static class init for example)
2 years ago
Tristan B. Kildaire
695354d4b6
Trashed old code
2 years ago
Tristan B. Kildaire
cbaca17d96
I want to rework the whole thing
2 years ago
Tristan B. Kildaire
6d19bd9b44
TODO added
2 years ago
Tristan B. Kildaire
73f312e8a7
Updated test case
2 years ago
Tristan B. Kildaire
48c7e9c681
Trying to reduce duplicate code for variable declaration checking
2 years ago
Tristan B. Kildaire
fb5de13895
Fixed bug whereby the semicolon after a `discard`'s expression was not expected and neither consumed
2 years ago
Tristan B. Kildaire
def6cfdaad
Added test case for discard statement
2 years ago
Tristan B. Kildaire
dc162e7b03
Added support for discard statement
2 years ago
Tristan B. V. Kildaire
818e385889
Updated test case
2 years ago
Tristan B. Kildaire
55b256565c
Added support for `new` operator in expression parsing (not yet as a statement)
2 years ago
Tristan B. Kildaire
c24b19bc0a
Added `new` keyword
2 years ago
Tristan B. V. Kildaire
7b55eebf94
Updated unit test now
2 years ago
Tristan B. V. Kildaire
5e20c97d1a
Fixed bug whereby the Module (top-level and base case (should be, is NOW)) was checked for a container (which would always be null), don't do this for Module's
...
We START at Modules
2 years ago
Tristan B. V. Kildaire
8c3a92ac4c
Bug found and fixed, introduces bug globally now but that is an easy fix.
2 years ago
Tristan B. V. Kildaire
8473b2e836
Formatted
2 years ago
Tristan B. V. Kildaire
51b113f734
Remove uneeded check (unit tests pass)
2 years ago
Tristan B. V. Kildaire
52e904495e
WIP: BIg to fix with Module
2 years ago
Tristan B. V. Kildaire
34206b03f8
WIP: Need to add support for `this`
2 years ago
Tristan B. V. Kildaire
9b2468144b
Ensure they are variables
...
Added variable to myClass1.myClass1_1 as `entity` and code to the unit test to test it
2 years ago
Tristan B. V. Kildaire
8feb055c86
Cleaned up
2 years ago
Tristan B. V. Kildaire
1e46615f81
Vice-versa of the above should not be true (unit test passes)
2 years ago
Tristan B. V. Kildaire
ebc99584dd
Fixed incorrect variable type being used
2 years ago
Tristan B. V. Kildaire
dfe9d8e553
Ensure the inner and outer variables exist in the correct classes
2 years ago
Tristan B. V. Kildaire
b51414eb02
Ensure name resolution is working (unit test passed)
2 years ago
Tristan B. V. Kildaire
92a11bf605
Assure that they are classes
2 years ago
Tristan B. V. Kildaire
a7922879cb
Test that the entities exist
2 years ago
Tristan B. V. Kildaire
6f9d4da5ae
Added more to unit test
2 years ago
Tristan B. Kildaire
df9866eeeb
WIP: Adding unit test to test naming resolution
2 years ago
Tristan B. Kildaire
92317e2801
Added new test case
2 years ago
Tristan B. Kildaire
a39ee62915
Disabled unit test
2 years ago