Christoffer Lerno
|
77ccfc1f7c
|
Added CT_SWITCH parsing in top level. Nil changed to null. Parsing more in line with grammar. Parse type as expressions. Zero init by default for locals. Corrected bool/fp conversion. Add memcpy pass to fix issue with value load/stores.
|
2020-09-21 11:38:12 +02:00 |
|
Christoffer Lerno
|
b4c661eaad
|
Pre lexing and mmap allocation together with exact exits.
|
2020-07-15 15:42:54 +02:00 |
|
Christoffer Lerno
|
ded367399e
|
Some work towards automated testing. Fixes to bigint. Removed implicit assign cast. Updated cast rules. Fixes *%=. Simplified case. Unified shift code. Major casts rework. Fixed error handling of pointer + integer adds. Removed &&= and ||=. Unified more expression handling and fixed bugs in sematic analysis on expressions.
|
2020-04-02 23:13:04 +02:00 |
|
Christoffer Lerno
|
2e3bbf119c
|
Lexer cleanup
|
2020-03-29 17:40:03 +02:00 |
|
Christoffer Lerno
|
7b4ed09517
|
Introduced a Lexer context, comment parsing now actually works properly. Token use in decl/ast/expr is moved to SourceRange instead. And the SourceRange used start/end, which is better than using start + len for many uses.
|
2020-01-25 17:56:17 +01:00 |
|
Christoffer Lerno
|
cdc1bfe267
|
Start using UnaryOp/PostUnaryOp ++/-- now works post/pre and also on pointers. Fix ++/-- on any number. Added examples. c3c now compiles files by default. Extended symbol resolution. Addition of 'extern'. Multi-level paths.
|
2020-01-16 21:28:13 +01:00 |
|
Christoffer Lerno
|
946ca18cee
|
Support for subscripts. Added helloworld.
|
2019-12-11 17:22:48 +01:00 |
|
Christoffer Lerno
|
990918b609
|
LLVM Codegen
|
2019-11-20 17:09:25 +01:00 |
|
Christoffer Lerno
|
2eb91083a6
|
Refactor type handling, some extremely simple codegen, but mostly work on casts (not finished)
|
2019-09-01 01:58:21 +02:00 |
|
Christoffer Lerno
|
ebce81ad51
|
Parses most of C3.
|
2019-08-25 08:40:07 +02:00 |
|
Christoffer Lerno
|
33770b905d
|
Added decorator keyword and reordered types
|
2019-08-02 14:42:22 +02:00 |
|
Christoffer Lerno
|
386ef35f36
|
Started a bit on parsing. Picking pieces from Titanos and trying to do things better.
|
2019-07-31 23:19:45 +02:00 |
|
Christoffer Lerno
|
8f611a400d
|
Lexing up and running.
|
2019-07-27 17:20:31 +02:00 |
|
Christoffer Lerno
|
7439dccc53
|
Add a little testing and keyword parsing x2
|
2019-07-25 18:57:35 +02:00 |
|