Tristan B. V. Kildaire
3bc19fb3cb
Refactored typing system
2021-04-23 14:19:46 +02:00
Tristan B. V. Kildaire
7476c1a3ce
Refactored, functions and variables both checked for valid type names using one funciton that processes TypedEntities
2021-04-23 14:14:09 +02:00
Tristan B. V. Kildaire
5e296dd67c
SHow error on invalid type being used for variable declarations
2021-04-23 14:09:05 +02:00
Tristan B. V. Kildaire
089d2b1584
Type resolution for variable declarations is working (WIP)
...
Added test case to test it
2021-04-23 14:07:19 +02:00
Tristan B. V. Kildaire
d92fd13e14
Updated Pointer class
2021-04-23 09:15:03 +02:00
Tristan B. V. Kildaire
e2280fbfa8
Added comment for Struct class
2021-04-22 10:40:44 +02:00
Tristan B. V. Kildaire
c1f28bd80e
Code cleanup
2021-04-21 23:29:14 +02:00
Tristan B. V. Kildaire
cac568178d
Moved field `width` from Integer to Number
2021-04-21 23:29:00 +02:00
Tristan B. V. Kildaire
f67c9657b1
Added Struct Type
2021-04-21 23:27:55 +02:00
Tristan B. V. Kildaire
040d79ecfb
Added classes for type representation
2021-04-21 23:27:44 +02:00
Tristan B. V. Kildaire
114f0c5c39
Now Container is an interface and Clazz is a kind-of Type (class-hierachy) and kind-of Container (interface)
...
Added assertion checks when casting for sanity (all casts to Entity from Container should never break as so far we do not have an object with a kind-of typeID tree that is imp,ementing interface Container and NOT Entity (class)
2021-04-21 21:14:11 +02:00
Tristan B. V. Kildaire
2cf9c07c1d
Change over
2021-04-21 20:50:38 +02:00
Tristan B. V. Kildaire
9732815f77
Added `Type`
2021-04-16 23:44:56 +02:00
Tristan B. V. Kildaire
11c22c176a
Figured out what to do
2021-04-16 22:50:53 +02:00
Tristan B. V. Kildaire
6d4048f112
It does be vibing with `protected`
2021-04-16 22:32:01 +02:00
Tristan B. V. Kildaire
80df41b8a8
Set to public for visibility
2021-04-16 22:18:58 +02:00
Tristan B. V. Kildaire
49227111da
Set import to public to expose to others importing this module
2021-04-16 22:17:17 +02:00
Tristan B. V. Kildaire
adc34cc4e4
Solved compilation error
2021-04-16 00:22:54 +02:00
Tristan B. V. Kildaire
173d8b8828
WIP: Added todo
2021-04-16 00:20:35 +02:00
Tristan B. V. Kildaire
c5e744cfb8
WIP: I should make a `Type` interface
...
How tf do interfaces realistically work/are implemented
2021-04-15 17:58:27 +02:00
Tristan B. V. Kildaire
4bbdd78b45
WIP: checkDeinitionTypes
...
Implement this to do type resolution
2021-04-15 17:26:14 +02:00
Tristan B. V. Kildaire
d7cd4df736
Added TODO
...
Added test case
2021-04-09 15:56:15 +02:00
Tristan B. V. Kildaire
9636f261dd
Added TODO
2021-04-07 13:11:36 +02:00
Tristan B. V. Kildaire
e48d0bdb44
Added precedence test
2021-04-02 18:45:59 +02:00
Tristan B. V. Kildaire
ca7fa39f34
Cleaned up CollidingNameException
2021-04-02 10:42:07 +02:00
Tristan B. V. Kildaire
0e79bc77ed
Added member collision unit test
2021-04-01 21:08:37 +02:00
Tristan B. V. Kildaire
b97fdba551
Cleaned up collision unit tests (posotive cases)
2021-04-01 21:00:48 +02:00
Tristan B. V. Kildaire
4fbde01073
Enabled assertions for unit test
2021-04-01 20:53:31 +02:00
Tristan B. V. Kildaire
398ae858c3
Added missing `performLex` call
2021-04-01 20:52:36 +02:00
Tristan B. V. Kildaire
d4f34d6fa3
Collision with Module still not working
2021-04-01 20:26:17 +02:00
Tristan B. V. Kildaire
34a8b4a313
Implemented unit test testing
2021-04-01 19:18:52 +02:00
Tristan B. V. Kildaire
9d1f0ee5e7
Fetch Module entity enabled
2021-04-01 17:35:29 +02:00
Tristan B. V. Kildaire
15f894b668
Everything works
2021-04-01 17:33:25 +02:00
Tristan B. V. Kildaire
db98011197
Added TODO
2021-04-01 16:03:23 +02:00
Tristan B. V. Kildaire
a770f5f5c9
WIP: Get containers to return when you have no parent
2021-04-01 15:39:06 +02:00
Tristan B. V. Kildaire
6171d2d17e
Added unit test
2021-04-01 15:30:56 +02:00
Tristan B. V. Kildaire
a89b82c423
Fixed
2021-04-01 15:25:55 +02:00
Tristan B. V. Kildaire
7cfb45bd25
WIP
2021-04-01 15:25:04 +02:00
Tristan B. V. Kildaire
bc8ed82e4f
Removed unused code
2021-04-01 15:24:46 +02:00
Tristan B. V. Kildaire
75872f8384
Added test to test lexer changes
2021-04-01 14:57:19 +02:00
Tristan B. V. Kildaire
dd8e5e8b0b
Added `;` as splitter
2021-04-01 14:56:42 +02:00
Tristan B. V. Kildaire
ede134e9d8
No need for specificity here, only in unit tests
2021-04-01 14:52:52 +02:00
Tristan B. V. Kildaire
49b9ac29d1
Added some code for future use to print stack trace
2021-04-01 14:52:15 +02:00
Tristan B. V. Kildaire
5a541bdb21
Format errors nicely
2021-04-01 14:46:02 +02:00
Tristan B. V. Kildaire
df6433bae2
Added exception handling
2021-04-01 14:43:49 +02:00
Tristan B. V. Kildaire
ab36f9200d
WIP
2021-04-01 14:38:20 +02:00
Tristan B. V. Kildaire
8a32272660
WIP
2021-04-01 14:38:11 +02:00
Tristan B. V. Kildaire
21cef84983
Added some test cases
2021-04-01 14:30:33 +02:00
Tristan B. V. Kildaire
92228ab583
WIP: Switch to using exceptions
2021-04-01 14:28:33 +02:00
Tristan B. V. Kildaire
889ea9155f
Removed cruft
2021-04-01 14:11:29 +02:00