Krzosa Karol
|
44d26d6939
|
Can call the compiler from command line with argument
|
2022-06-07 15:27:18 +02:00 |
|
Krzosa Karol
|
d45ee5ec8a
|
Fix scope bug, fix parsing bug
|
2022-06-07 13:37:57 +02:00 |
|
Krzosa Karol
|
a59283903b
|
Add var args for using printf
|
2022-06-07 11:16:30 +02:00 |
|
Krzosa Karol
|
b7df759d9d
|
Add foreign functions
|
2022-06-07 09:56:19 +02:00 |
|
Krzosa Karol
|
c5b82c0532
|
Added unary ++ --, prefix and postfix, working on running a program
|
2022-06-07 09:05:02 +02:00 |
|
Krzosa Karol
|
d3da979d64
|
More for loop variations working
|
2022-06-06 23:55:44 +02:00 |
|
Krzosa Karol
|
f852a23fcb
|
Fixing bugs, pointer arithmetic checking, better for, working on first program
|
2022-06-06 23:50:38 +02:00 |
|
Krzosa Karol
|
f3527be36a
|
Add unicode literal
|
2022-06-04 09:27:59 +02:00 |
|
Krzosa Karol
|
c3f235bd44
|
Cleanup
|
2022-06-04 09:12:27 +02:00 |
|
Krzosa Karol
|
5e798bd179
|
Add string accessors, working towards first program
|
2022-06-03 21:59:51 +02:00 |
|
Krzosa Karol
|
42699034ae
|
Got all programs working, now adding unary not and neg
|
2022-06-03 17:58:20 +02:00 |
|
Krzosa Karol
|
14af46125d
|
Fix if parsing bug
|
2022-06-03 15:38:29 +02:00 |
|
Krzosa Karol
|
7e4b9777e6
|
Cleanup
|
2022-06-03 12:07:17 +02:00 |
|
Krzosa Karol
|
081e559520
|
Basic type conversion when assigning, added + - unary
|
2022-06-03 10:48:07 +02:00 |
|
Krzosa Karol
|
e2e684294e
|
Add bool values to parser, and bool nodes to ast
|
2022-06-02 23:48:03 +02:00 |
|
Krzosa Karol
|
2909214ee0
|
Add floats
|
2022-06-02 22:52:16 +02:00 |
|
Krzosa Karol
|
ebb21df015
|
Before adding untyped types
|
2022-06-01 21:38:39 +02:00 |
|
Krzosa Karol
|
75985de125
|
Add more operators to lexer
|
2022-06-01 19:12:56 +02:00 |
|
Krzosa Karol
|
494a937d1f
|
Rewritten the expression parser, tldr that '.' is actually right associative binary operator, I brain farted really hard this time
|
2022-06-01 18:59:38 +02:00 |
|
Krzosa Karol
|
364daed1c7
|
Fix field parsing
|
2022-06-01 15:00:27 +02:00 |
|
Krzosa Karol
|
a5267bb8ae
|
Adding lvalue rvalue concept, Cleanup
|
2022-06-01 13:23:21 +02:00 |
|
Krzosa Karol
|
9b18c106b6
|
Basic variable reassignments
|
2022-06-01 12:13:02 +02:00 |
|
Krzosa Karol
|
86aec0b1eb
|
More cleanup
|
2022-05-31 23:01:55 +02:00 |
|
Krzosa Karol
|
98d2389c9f
|
Cleanup
|
2022-05-31 22:52:56 +02:00 |
|
Krzosa Karol
|
0360086bab
|
Restructure
|
2022-05-31 18:29:35 +02:00 |
|
Krzosa Karol
|
20accf8293
|
Parsing for stmt
|
2022-05-31 16:45:20 +02:00 |
|
Krzosa Karol
|
41697dec80
|
Ast_Init is not Ast_Binary with TK_Comma
|
2022-05-31 16:24:04 +02:00 |
|
Krzosa Karol
|
627e2bad88
|
Initial enums working
|
2022-05-31 11:50:36 +02:00 |
|
Krzosa Karol
|
980a3b68b9
|
Struct field access. Damn, I coded for like 30 minutes and then it just worked on the first try
|
2022-05-30 18:27:06 +02:00 |
|
Krzosa Karol
|
3a97e739a8
|
More work on calls and compound statements
|
2022-05-30 13:22:57 +02:00 |
|
Krzosa Karol
|
9e24a608cb
|
Rewriting function calls to have named parameters, default values
|
2022-05-30 11:00:30 +02:00 |
|
Krzosa Karol
|
54e3cb5261
|
On constructors
|
2022-05-30 09:10:15 +02:00 |
|
Krzosa Karol
|
c305d4da44
|
Calling functions is working, same syntax as compound stmts
|
2022-05-30 09:04:34 +02:00 |
|
Krzosa Karol
|
802dce749e
|
Change syntax of compound exprs
|
2022-05-29 23:42:53 +02:00 |
|
Krzosa Karol
|
ea1b74cda0
|
Adding struts
|
2022-05-29 12:30:02 +02:00 |
|
Krzosa Karol
|
07b793aacc
|
Begin structs, add comment on multiline lambdas, add Ast flags
|
2022-05-29 11:29:26 +02:00 |
|
Krzosa Karol
|
7de941899f
|
Fix crashes
|
2022-05-28 17:48:52 +02:00 |
|
Krzosa Karol
|
798453c7db
|
Adding parent nodes to asts
|
2022-05-27 16:19:18 +02:00 |
|
Krzosa Karol
|
8875b61970
|
Add typedefs in codegen, globals is working
|
2022-05-27 15:00:45 +02:00 |
|
Krzosa Karol
|
46abf8c1a6
|
Initial working version of types as expressions
|
2022-05-27 13:46:27 +02:00 |
|
Krzosa Karol
|
d8a9b318b7
|
Changing typespecs to be normal expressions
|
2022-05-27 12:29:51 +02:00 |
|
Krzosa Karol
|
f66fd447e5
|
Removed resolved pointer from Ast_Typespec, it's accessed using a map now
|
2022-05-27 12:05:23 +02:00 |
|
Krzosa Karol
|
b773ad1c17
|
Trying to add order indendent decls
|
2022-05-26 21:09:07 +02:00 |
|
Krzosa Karol
|
0e398c84b6
|
Cleanup, There is no decl anymore, Ast_Named
|
2022-05-26 20:21:24 +02:00 |
|
Krzosa Karol
|
ec773c08be
|
Add init statement to if
|
2022-05-26 18:57:15 +02:00 |
|
Krzosa Karol
|
3d9a38494c
|
Add if statements
|
2022-05-26 18:13:37 +02:00 |
|
Krzosa Karol
|
3cd79040bc
|
Fix compile errors when compiling for msvc
|
2022-05-26 16:55:07 +02:00 |
|
Krzosa Karol
|
c88b38cc44
|
Successful compile with new parser!
|
2022-05-26 14:49:50 +02:00 |
|
Krzosa Karol
|
f4c05923c9
|
Compile string, working on scopes
|
2022-05-26 11:54:12 +02:00 |
|
Krzosa Karol
|
b945f3affd
|
Lambdas, statements, typechecking lambdas
|
2022-05-25 14:44:30 +02:00 |
|