Commit Graph

327 Commits (1ddd7f102bb50eb4ffe24f81b6b35f66ab96584a)

Author SHA1 Message Date
Tristan B. Kildaire 1ddd7f102b Support for `static` without preceding accessor, has been added 2021-06-06 15:43:01 +02:00
Tristan B. Kildaire 82cffeaccb WIP: Adding support for `static` keyword without preceding accessor 2021-06-06 15:35:04 +02:00
Tristan B. Kildaire f0dae29533 Added support for `static` keyword when preceded by an accessor 2021-06-06 15:33:20 +02:00
Tristan B. V. Kildaire 948238d4e9 Added InitScope, for STATIC 2021-06-04 21:28:30 +02:00
Tristan B. V. Kildaire c8490bfe36 WIP 2021-06-04 14:52:22 +02:00
Tristan B. V. Kildaire 0bf4a7f658 WIP: Adding static support 2021-06-04 14:47:39 +02:00
Tristan B. V. Kildaire 6225b5e62f WIP: Need to add support for `static` 2021-06-04 14:39:49 +02:00
Tristan B. V. Kildaire 16bfdbfc2f Moved case with path resolution not visited to another test case 2021-06-04 13:43:44 +02:00
Tristan B. V. Kildaire 4eb0c97dc7 Works without it 2021-06-04 13:42:47 +02:00
Tristan B. V. Kildaire 1974428772 Found my bug 2021-06-04 13:42:26 +02:00
Tristan B. V. Kildaire 440154b228 Visitation by UFOs, damn 2021-06-04 13:39:11 +02:00
Tristan B. V. Kildaire f024bedaaa WIP: Need to add support for the `new` keyword 2021-06-04 12:04:58 +02:00
Tristan B. V. Kildaire 440addf664 Merge branch 'develop' into codegen 2021-06-04 11:58:56 +02:00
Tristan B. V. Kildaire 9cf1a181a2 TIme for expression checking 2021-06-04 11:57:25 +02:00
Tristan B. V. Kildaire 7bd8bfdde0 Aded back in cause why not.
Visitation wil, impy marking in the sense that  if we do expression checking then it can only rely on alrady visited.
2021-06-04 11:56:47 +02:00
Tristan B. V. Kildaire e5873fecb3 Idea: Added visitation, we don't need marking tbh , we checking visitaion, marking is implcii in that if there is an error, we exit compiation rpocess, else we continue (which implies marked i.e. the type checking succeeded) 2021-06-04 11:55:22 +02:00
Tristan B. V. Kildaire 6c0a0ec69e Idea: /* TODO: Got it, we NEED a dependency tree, to know chihs is being processed previosuly */ 2021-06-04 11:44:51 +02:00
Tristan B. V. Kildaire 3051d6b66f Added marking capability to Statement 2021-06-04 11:36:58 +02:00
Tristan B. V. Kildaire 09bb089998 WIP: Found problem for ongoing recursion, we need a stopping case - we need to mark things 2021-06-04 11:34:18 +02:00
Tristan B. V. Kildaire cfd81a6b45 Don't check the type (in class case) when the conatiner we are in is a class AND is the same class as that of the type of the typed entity being checked 2021-06-04 11:31:44 +02:00
Tristan B. V. Kildaire 6089598afe WIP 2021-06-04 11:27:56 +02:00
Tristan B. Kildaire de5502f61d Stub file added for future LLVM code generator 2021-06-01 15:24:23 +02:00
Tristan B. Kildaire 4b13c88c51 DGen works, D code can be generated 2021-06-01 15:24:13 +02:00
Tristan B. Kildaire d8f82e17de Added plumbing for testing D (not final, we shall use LLVM) code generation 2021-06-01 15:18:21 +02:00
Tristan B. Kildaire 274ea767a2 Added plumbing for code generation 2021-06-01 15:18:09 +02:00
Tristan B. Kildaire d34dd5b689 Now properly generates a Struct object 2021-06-01 10:00:21 +02:00
Tristan B. Kildaire 814b29984c Refactored comment 2021-05-31 22:36:11 +02:00
Tristan B. Kildaire d1bd2fab2c Added TODO 2021-05-31 18:16:35 +02:00
Tristan B. Kildaire 9fc9b1cdfe Updated unit test for struct parsing 2021-05-31 18:16:06 +02:00
Tristan B. Kildaire 13645f6b6b Append Statement objects to build up struct's body 2021-05-31 18:14:15 +02:00
Tristan B. Kildaire bf48ee7b83 Added test case to test struct parsing 2021-05-31 18:06:15 +02:00
Tristan B. Kildaire cf66e8255d Fixed termination of struct parse loop 2021-05-31 18:06:09 +02:00
Tristan B. Kildaire b07c2fb2b5 Ensure that only assignment-less variable declarations and funciton definitions are present in the struct's body 2021-05-31 18:01:06 +02:00
Tristan B. Kildaire 6a18315f78 Re-enable chekc for item we are left on (exit if semi-colon)
Actually NO
2021-05-31 17:53:24 +02:00
Tristan B. Kildaire 46c135042b Struct parsing basic parsing completed, just simply call `parseAccessor()` 2021-05-31 17:52:15 +02:00
Tristan B. Kildaire 8c7c4d038c WIP: Actual struct support
Added TODO
2021-05-31 17:51:16 +02:00
Tristan B. V. Kildaire a1c6eb9c74 Typo fix 2021-05-31 09:07:22 +02:00
Tristan B. Kildaire c955b0bd6a Added TODO list for things to implement these holidays 2021-05-04 19:26:26 +02:00
Tristan B. Kildaire dcd513079d Updated other main unit test 2021-05-04 19:19:57 +02:00
Tristan B. Kildaire fd05ab1ef8 Fixed bug with `parseStruct`, now it doesn't return null 2021-05-04 19:18:30 +02:00
Tristan B. Kildaire 04c902a2c7 Added struct parsing support parseAccessor 2021-05-04 19:17:33 +02:00
Tristan B. Kildaire 5cee963957 Added struct parsing support to `parse` (for top-evel parsing) 2021-05-04 19:13:20 +02:00
Tristan B. Kildaire 017ef66d81 Works 2021-05-04 19:11:40 +02:00
Tristan B. Kildaire 931d136d74 Consume the closing curly brace in parseStruct 2021-05-04 19:11:25 +02:00
Tristan B. Kildaire 688fc34969 Added Struct parsing support to paarseBody
Added a test to test it (in basic1.t)
2021-05-04 19:10:59 +02:00
Tristan B. Kildaire ef3891530a Added SymbolType.STRUCT enum
Added support for SymbolType.STRUCT to getSymbolType
2021-05-04 19:08:55 +02:00
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