Commit Graph

281 Commits (8661d2e2640b2ec21b6887ef7812f912df13c454)

Author SHA1 Message Date
Tristan B. Kildaire 8661d2e264 Basic struct parsing added (not done and also not being called anywhere yet)
Updated unit test basic1.t to include a struct in it
2021-05-04 19:07:04 +02:00
Tristan B. Kildaire 139dcfd07c WIP: Adding support for structs 2021-05-04 18:58:07 +02:00
Tristan B. V. Kildaire 7642db1420 Undid, might wanna dependency check those 2021-04-29 17:59:36 +02:00
Tristan B. V. Kildaire c2f82f5577 Added comment 2021-04-29 17:58:45 +02:00
Tristan B. V. Kildaire 292407cbae Refactored 2021-04-29 17:57:15 +02:00
Tristan B. V. Kildaire 88e2dc03e1 Renamed `checkContainer` to `checkContainerCollision` 2021-04-29 17:54:26 +02:00
Tristan B. V. Kildaire eefb78158d Removed TODO 2021-04-28 01:38:00 +02:00
Tristan B. V. Kildaire d5dbaa7b8b Removed uneeded function 2021-04-26 10:07:16 +02:00
Tristan B. V. Kildaire 8c6eb6dbd0 Resolution of user-defined types is working 2021-04-26 10:05:20 +02:00
Tristan B. V. Kildaire bbb3d2f415 Added void type support 2021-04-26 10:04:24 +02:00
Tristan B. V. Kildaire 2fdb584c65 Removed incorrect type for built-in test `void.void` from both test cases 2021-04-26 10:02:46 +02:00
Tristan B. V. Kildaire 6185f8847c Fixed type resolution for built-in types 2021-04-26 10:01:53 +02:00
Tristan B. V. Kildaire c9c913eaae Call method 2021-04-26 10:00:32 +02:00
Tristan B. V. Kildaire bbef8c00f9 Added ubyte and byte type to builtins.d 2021-04-26 09:53:47 +02:00
Tristan B. V. Kildaire 8c3c14d412 Added ushort and shoprt type to builtins.d
Fixed branch
2021-04-26 09:53:15 +02:00
Tristan B. V. Kildaire 2bbdd50373 Added ulong and long type to builtins.d 2021-04-26 09:52:31 +02:00
Tristan B. V. Kildaire 170824be61 Added some return values for `getBuiltInType` 2021-04-24 13:16:48 +02:00
Tristan B. V. Kildaire cce89233eb Stub added for built-in types 2021-04-23 14:19:53 +02:00
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