Commit Graph
784 Commits
Author SHA1 Message Date
sashakoshka 298b819b46 Re-add generating constants 2024-04-22 19:56:28 -04:00
sashakoshka 1d1908cd5d Im gonna have to rewrite this whole compiler arent i 2024-04-21 12:27:22 -04:00
sashakoshka c13c4caacb Add Unit() method to semantic tree 2024-04-21 12:24:18 -04:00
sashakoshka cc5173dd52 Keys now support constants 2024-04-21 11:31:41 -04:00
sashakoshka f4480fe6b1 Generator no longer generates constants because I assumed untrue things 2024-04-21 11:01:07 -04:00
sashakoshka f05efb749d Generator generates constants 2024-04-21 00:19:33 -04:00
sashakoshka 8248135255 Switch statements now evaluate constants 2024-04-20 23:56:50 -04:00
sashakoshka e104da363c Break functionality out of analyzeTypedef 2024-04-20 23:50:53 -04:00
sashakoshka 65af9d7f3c Perform constant evaluation during constant declaration analysis 2024-04-20 23:47:12 -04:00
sashakoshka b5f5fa4598 Added eval tests 2024-04-20 23:40:41 -04:00
sashakoshka 33768c6d84 Added CompareErr to testcommon 2024-04-20 23:07:38 -04:00
sashakoshka 293662e474 Errors no longer directly depends on testcommon 2024-04-20 23:07:16 -04:00
sashakoshka 334a45e06f Oops 2024-04-12 00:44:53 -04:00
sashakoshka 373db2ae81 Added stub for constant expression evaluator 2024-04-12 00:43:24 -04:00
sashakoshka 034d9661b3 Add back switching on constants to the test 2024-04-12 00:12:49 -04:00
sashakoshka 7bad3d5672 Update analyzer tests accordingly 2024-04-12 00:09:06 -04:00
sashakoshka 3485fa1820 Changed constant declaration syntax to not be ambiguous 2024-04-12 00:07:22 -04:00
sashakoshka b822d57757 Fix an error being ignored when analyzing typedefs 2024-04-11 23:57:47 -04:00
sashakoshka 0a54232e29 Remove tests with switching on constants for now 2024-04-11 23:55:40 -04:00
sashakoshka 94272bff03 Pass some tests 2024-04-11 23:22:27 -04:00
sashakoshka 6ba8b5465b Add untested constant access analysis 2024-04-11 22:30:31 -04:00
sashakoshka 0fd35343c1 Untested analysis of constant declarations 2024-04-11 21:50:05 -04:00
sashakoshka d88a34d638 Scope constant declarations 2024-04-11 21:01:55 -04:00
sashakoshka fc930fa3d4 Added a Description() method to Expression 2024-04-11 20:46:59 -04:00
sashakoshka 40d500b705 Add IsConstant() to Expression 2024-04-11 20:25:16 -04:00
sashakoshka 6313992c10 Added analyzer tests for constants 2024-04-07 23:47:30 -04:00
sashakoshka e12e83921b Parse constant access unit specifiers 2024-04-06 14:01:14 -04:00
sashakoshka 2346c34cce OOps 2024-04-06 13:51:11 -04:00
sashakoshka d8f897d023 Add unit specifiers to constant access 2024-04-06 13:49:11 -04:00
sashakoshka 386c39126d Parse constant declarations 2024-04-06 13:40:03 -04:00
sashakoshka 7d3074ea2f Parse constant access 2024-04-03 13:32:45 -04:00
sashakoshka d568d5efef Add parser tests for constants 2024-04-03 13:32:26 -04:00
sashakoshka 7d8378f7d8 Fix FSPL parser readme tree 2024-04-03 12:52:02 -04:00
sashakoshka 7ea24b8b31 Add constants to entity 2024-04-03 12:41:31 -04:00
sashakoshka 172b2fc8db Added constants to the spec 2024-04-03 11:33:00 -04:00
sashakoshka c7191ff678 Add enumerated constant access to parser readme 2024-04-03 11:26:49 -04:00
sashakoshka 018dc31d04 Update FSPL parser readme 2024-04-03 11:04:14 -04:00
sashakoshka 4b90ba77d3 Capitalize W*ndows 2024-04-02 18:36:52 +00:00
sashakoshka 2a6f086350 Merge pull request 'implement-reserved-identifiers' (#76) from implement-reserved-identifiers into main
Reviewed-on: #76
2024-04-02 07:00:59 +00:00
sashakoshka 767e7bd33c Fix analyzer tests that used "switch" as function name 2024-04-02 02:59:49 -04:00
sashakoshka 6c41e71ade Analyzer tests for reserved idents 2024-04-02 02:59:42 -04:00
sashakoshka 423f3ba22f Add function in parser for checking if a word is reserved 2024-04-02 02:59:11 -04:00
sashakoshka 08eedaf74d Merge pull request 'os-native-filepaths' (#75) from os-native-filepaths into main
Reviewed-on: #75
v0.5.0
2024-03-31 05:34:22 +00:00
sashakoshka 88e10158ae It is now possible for tests to pass on windows 2024-03-31 01:33:28 -04:00
sashakoshka 93d4aea1b1 Compiler tests properly add extension to obj files 2024-03-31 01:33:28 -04:00
sashakoshka 810175b6c9 Object files have platform specific extensions 2024-03-31 01:33:28 -04:00
sashakoshka b6b0a1e592 parent 00110039e2
author Sasha Koshka <sashakoshka@tebibyte.media> 1711851967 -0400
committer Sasha Koshka <sashakoshka@tebibyte.media> 1711862974 -0400

Compiler tests now run on Windows

Compiler tests show linker log

Compiler tests show linker log
2024-03-31 01:33:08 -04:00
sashakoshka 00110039e2 Compiler defaults to .o when output name isn't specified 2024-03-28 18:16:58 -04:00
sashakoshka 15e418d8c1 Add custom fs implementation 2024-03-28 18:12:37 -04:00
sashakoshka 1c61235b63 openAbsolute should strip out the volume name on Windows 2024-03-28 17:16:50 -04:00