This website requires JavaScript.
534db633ed
Untested ast iterator
Krzosa Karol
2023-03-31 08:56:25 +02:00
77bcc74a64
ast_copy
Krzosa Karol
2023-03-31 08:33:09 +02:00
aaf1b2f2d9
Cleanup + little polymorph + ast_copy
Krzosa Karol
2023-03-31 08:19:26 +02:00
21c8ceff03
Baby steps struct polymorphs
Krzosa Karol
2023-03-29 21:36:26 +02:00
58a46b46e6
cleanup notes
Krzosa Karol
2023-03-29 21:35:53 +02:00
000cc7a813
cstring_compare
Krzosa Karol
2023-03-29 21:17:26 +02:00
cf8478e941
polymorphism.core
Krzosa Karol
2023-03-29 11:42:54 +02:00
d8c80fb7a3
Add polymorph token
Krzosa Karol
2023-03-29 11:42:40 +02:00
710fbf431b
Iterating type infos nicely
Krzosa Karol
2023-03-29 10:25:25 +02:00
7dcd53587e
Type info uses slices now! Fixed a case of slice needing to have a completed type
Krzosa Karol
2023-03-29 10:22:43 +02:00
cb630951fd
Compound expression for union
Krzosa Karol
2023-03-29 10:06:55 +02:00
c9072711b5
Declaring variables of type works
Krzosa Karol
2023-03-29 09:54:15 +02:00
9b91f77cf0
Union type sizing and code generation
Krzosa Karol
2023-03-29 09:52:24 +02:00
b572f4ef7c
Parsing union
Krzosa Karol
2023-03-29 09:34:33 +02:00
fa26e9d218
Factor
Krzosa Karol
2023-03-29 09:27:38 +02:00
e13b4b7f25
Clang format + meta fix
Krzosa Karol
2023-03-29 09:24:30 +02:00
c97bb4272b
Clang format on hpp
Krzosa Karol
2023-03-29 09:11:17 +02:00
0622811a87
Cleanup string format. Using stage_arena
Krzosa Karol
2023-03-29 08:40:01 +02:00
b0633c84f4
Allocator cleanup + '_' skips tests
Krzosa Karol
2023-03-29 08:32:24 +02:00
7da3e27c05
Cleanup
Krzosa Karol
2023-03-29 08:14:36 +02:00
1c5f6731a4
demo1.core
Krzosa Karol
2023-03-29 08:05:39 +02:00
67b966cb5b
Fixed bad error message when no return value + compound inferred type
Krzosa Karol
2023-03-29 08:03:43 +02:00
0804a76f7e
push_struct.core
Krzosa Karol
2023-03-28 22:11:16 +02:00
9f8023ac5c
Missing change
Krzosa Karol
2023-03-28 21:47:14 +02:00
622a5bd487
Factor
Krzosa Karol
2023-03-28 21:43:28 +02:00
5495f96b3b
Clang format
Krzosa Karol
2023-03-28 21:16:10 +02:00
f53d5dd1f2
Remove ast_visit
Krzosa Karol
2023-03-28 21:14:41 +02:00
90c96f1495
Mark it as complete
Krzosa Karol
2023-02-11 11:12:10 +01:00
391df593a2
Trying to do some code generation
Krzosa Karol
2023-02-11 10:32:11 +01:00
27d9ad3ddc
Fix slice codegen inside calls. Add core_free_compiler
Krzosa Karol
2023-02-10 09:59:06 +01:00
dd6dc60d8b
Actually substitute token array. init_language_core. Seems like perf improved
Krzosa Karol
2023-02-10 09:49:46 +01:00
6f8a7ba6c8
Fix arrays in tuples error in C gen. Better api for getting unique name.
Krzosa Karol
2023-02-10 09:04:27 +01:00
d41da94c80
Add string as struct, Fix void pointer indexing compound for String is not working but maybe that's fine
Krzosa Karol
2023-02-09 20:17:48 +01:00
5e8b3739af
Propagating constants in operator overloads
Krzosa Karol
2023-02-09 16:11:16 +01:00
0029e0688b
Fix type incomplete of argument in away procedure that has a pointer to that that is never used outside of procedure definition. We emit void.
Krzosa Karol
2023-02-09 14:41:02 +01:00
7370e8b716
Using arena as token array, remove arenas idea
Krzosa Karol
2023-02-09 12:36:36 +01:00
5138ba0097
Misc changes
Krzosa Karol
2023-01-01 20:08:07 +01:00
1121e4aa84
Expose time stats
Krzosa Karol
2023-01-01 19:59:27 +01:00
aa994c999a
Get rid of clib in big int, introduce message api, add stringify message
Krzosa Karol
2023-01-01 19:51:35 +01:00
ec66f02e46
Cleanup iterators, remove logging, add message queue
Krzosa Karol
2023-01-01 19:18:42 +01:00
3de813212a
Add todos
Krzosa Karol
2023-01-01 17:50:22 +01:00
d6a5df8d95
Cleanup iterators
Krzosa Karol
2023-01-01 17:44:27 +01:00
d120d05eee
Move types to Core_Ctx
Krzosa Karol
2023-01-01 16:27:42 +01:00
d441abcddb
Move operator infos to Core_Ctx
Krzosa Karol
2023-01-01 16:14:47 +01:00
34928e3977
Move interns into Core_Ctx
Krzosa Karol
2023-01-01 14:23:59 +01:00
647958b72d
Getting rid of globals
Krzosa Karol
2023-01-01 14:17:37 +01:00
c238e5ba46
Organization cleanup, stage arena to Scratch_Arena
Krzosa Karol
2023-01-01 13:15:20 +01:00
39f46900b2
Cleanup includes, remove stdio.h from base
Krzosa Karol
2023-01-01 12:58:57 +01:00
c5539276ae
Working on simplifying configurable allocation scheme
Krzosa Karol
2023-01-01 12:40:58 +01:00
8c0a8bf72b
Working on simplifying the allocation scheme
Krzosa Karol
2023-01-01 10:48:06 +01:00
d10b72057e
Block based arena
Krzosa Karol
2023-01-01 00:38:19 +01:00
d5179bb596
Small allocator changes, fix crash
Krzosa Karol
2022-12-31 21:05:13 +01:00
d75c54f61f
Modifying the class hierarchy and removing globals, allocators, simplifying
Karol Krzosa (Nokia)
2022-12-31 20:10:11 +01:00
ffd6bc5d23
Remove pernament arena
Krzosa Karol
2022-12-31 18:02:48 +01:00
55515ff420
Introduce the allocator stuff again
Krzosa Karol
2022-12-31 16:51:01 +01:00
e20edaa3a2
You can use compiler_interface hpp outside
Krzosa Karol
2022-12-31 14:53:40 +01:00
23db7cc5c4
Add Core compiler interface
Krzosa Karol
2022-12-31 14:47:47 +01:00
673db72e29
Misc changes
Krzosa Karol
2022-12-31 14:16:46 +01:00
e07ad3c86d
Module changes, found Type_Incomplete error
Krzosa Karol
2022-10-14 17:20:46 +02:00
a60df75cc3
Rename Windows.core
Krzosa Karol
2022-10-14 07:07:06 +02:00
62aaffdb83
Working on modules finding bugs
Krzosa Karol
2022-10-14 07:06:55 +02:00
16a2fe659e
Misc changes
Krzosa Karol
2022-10-13 20:46:03 +02:00
022f874c32
Working on math libraries
Krzosa Karol
2022-10-13 12:33:16 +02:00
6e8acf7dc8
Adding missed compiler errors, some work on modules
Krzosa Karol
2022-10-13 11:43:15 +02:00
de0d2181f5
Libc module
Krzosa Karol
2022-10-13 08:19:00 +02:00
f50e7b5250
Errors work better with sublime
Krzosa Karol
2022-10-13 08:18:50 +02:00
ce6c2a33b5
Fix sublime_text build command not working with compiler due to terminal sequences
Krzosa Karol
2022-10-13 08:01:16 +02:00
7be9a9ef0e
Fix assignment type resolution
Krzosa Karol
2022-10-11 14:20:35 +02:00
061d662f81
Fix reference to literal
Krzosa Karol
2022-10-11 13:44:29 +02:00
7b7877a0d0
Random clang format tests
Krzosa Karol
2022-10-11 13:16:01 +02:00
2c53693754
CORE_Static
Krzosa Karol
2022-10-11 13:04:35 +02:00
e37bf8b1bc
Add TypeOf operator
Krzosa Karol
2022-10-11 11:13:07 +02:00
4004b8b8d3
Fixed leaky imports, modified log stuff
Krzosa Karol
2022-10-11 10:20:18 +02:00
977a62d5ae
Update README
Krzosa Karol
2022-10-10 22:26:26 +02:00
7df42bf79b
Update README
Krzosa Karol
2022-10-10 22:23:20 +02:00
38ee15bb44
Update README
Krzosa Karol
2022-10-10 12:32:20 +02:00
7aa0ba56b6
Remove Allocator stuff
Krzosa Karol
2022-10-10 10:22:04 +02:00
2f153a7cd3
Replacing core allocation stuff, still need to rewrite map and token structures
Krzosa Karol
2022-10-10 00:05:38 +02:00
13f2f20ea6
Any semantics, lvalue allocates on stack
Krzosa Karol
2022-10-09 23:42:02 +02:00
9ad2da03c8
Load is file relative not module relative
Krzosa Karol
2022-10-09 15:20:53 +02:00
54426fdd69
F32 is default float, operator overloads turn literals into default types
Krzosa Karol
2022-10-09 14:51:27 +02:00
21ac6662c4
Dynamic typing example
Krzosa Karol
2022-10-09 14:17:48 +02:00
926e460f4a
Update README
Krzosa Karol
2022-10-09 14:12:32 +02:00
0049b39e17
link directive
Krzosa Karol
2022-10-09 14:00:41 +02:00
faec89beae
Update readme todo
Krzosa Karol
2022-10-09 12:26:05 +02:00
ee6f8114ee
Ported to Linux!
Krzosa Karol
2022-10-09 12:23:38 +02:00
0637a32655
Somehow we compiling and not crashing
Krzosa Karol
2022-10-09 11:05:03 +02:00
ed7267a8c8
OS.h
Krzosa Karol
2022-10-09 10:47:38 +02:00
fb6c89f845
Down to one compile error
Krzosa Karol
2022-10-09 10:47:33 +02:00
8ad8e72b3a
Getting rid of heap stuff completely but also naively
Krzosa Karol
2022-10-09 10:45:36 +02:00
829de11987
Porting to Unix
Krzosa Karol
2022-10-09 10:34:36 +02:00
b22e1ac0db
Removing heap allocations, Porting to Unix
Krzosa Karol
2022-10-09 10:34:23 +02:00
aa2b4d90e4
Update README
Krzosa Karol
2022-10-09 09:16:26 +02:00
9b06c2548e
Update readme
Krzosa Karol
2022-10-08 10:16:02 +02:00
15e4ebd682
Added conditional compilation and Const namespace with OS name
Krzosa Karol
2022-10-08 10:02:50 +02:00
ed98572547
Update todo
Krzosa Karol
2022-10-06 14:27:29 +02:00
0010b92ef1
Load cannot be namespaced anymore due to weird namespace behaviour that this creates. I need to add a way to import but force evaluation of everything in the future to make that up.
Krzosa Karol
2022-10-06 14:24:29 +02:00
8395969620
Typing the untyped values in an array of Any, commenting stuff
Krzosa Karol
2022-10-05 20:54:38 +02:00
6f04eb86b2
Working on format string
Krzosa Karol
2022-10-04 20:32:17 +02:00
ed0b32eb3e
Fixing type bugs
Krzosa Karol
2022-10-04 20:03:37 +02:00