Nathan Braswell
|
d85f388792
|
Shorter AST names
|
2018-05-22 20:14:15 -04:00 |
|
Nathan Braswell
|
eefa752d55
|
shortening of str and vec
|
2018-05-22 19:43:54 -04:00 |
|
Nathan Braswell
|
8edfd88c28
|
Fix this handling, other bytecode fixes
|
2018-03-21 00:00:06 -04:00 |
|
Nathan Braswell
|
c0209118e5
|
Small cleanup
|
2018-01-02 23:22:46 -05:00 |
|
Nathan Braswell
|
cb720e5cd6
|
working on moving rest of obj stuff into obj_lower
|
2017-11-03 00:39:58 -04:00 |
|
Nathan Braswell
|
5b8ef4ce2e
|
some cleanup
|
2017-10-29 17:53:30 -04:00 |
|
Nathan Braswell
|
3a7f73b711
|
sigh
|
2017-01-23 01:09:31 -05:00 |
|
Nathan Braswell
|
0f2ac1421a
|
Basic CTCE working! In between commit because #link(a) syntax changed to #link(a)
|
2016-07-03 22:50:42 -07:00 |
|
Nathan Braswell
|
29eff2a23e
|
Fix defer_lower to handle return statements, starting on obj_lower which has now taken over calling destruct for declared varaibles. Some of the code from the c_generator has been commented out or bypassed to use the new system - it should be removed when it's complete.
|
2016-06-22 01:41:57 -07:00 |
|
Nathan Braswell
|
4a33a94b15
|
Fixed, working unions. Had to move the is_union member to the end. I'm not sure if this is a C bug or an effect of me doing something weird somewhere
|
2016-06-16 23:06:38 -07:00 |
|
Nathan Braswell
|
59f5c6f667
|
found segfault member
|
2016-06-17 01:01:59 -04:00 |
|
Nathan Braswell
|
3f89cb1e37
|
partial rollback, might still not work
|
2016-06-16 09:53:15 -07:00 |
|
Nathan Braswell
|
4de7dd1210
|
Added support for unions as a step towards lowering ADTs in the next pass to be written.
|
2016-06-15 22:26:03 -07:00 |
|
Nathan Braswell
|
27fea0e90c
|
work on multithread, interpreter, and prototyped a #line-in-simple-passthrough ast changing pass turned on with -g
|
2016-06-14 02:14:25 -07:00 |
|
Nathan Braswell
|
12dfa837e3
|
Added in extern global variables and printing of *char and string to stderr with printlnerr, printerr. Note that this will still compile in a previous version, but instead of extern, stderr will be newly declared. This is ok, because this version of the compiler never uses it, so we'll only use it after this one is bootstrapped in.
|
2016-05-22 13:08:10 -07:00 |
|
Nathan Braswell
|
cfcaff7887
|
Add support for variadic extern functions, as it turns out that you can't just specialize them with declarations. I.e., int a_func(int, ...) is different from int a_func(int, int) even if you only ever call a_func(1,2), etc. This commit is in preperation for moving to correcty variadic extern functions for the c stdlib (like printf, snprintf)
|
2016-05-19 23:17:32 -07:00 |
|
Nathan Braswell
|
e63b7cf770
|
Enough interpreter to do math on constant integers
|
2016-05-13 03:10:36 -04:00 |
|
Nathan Braswell
|
ecbbcb4eda
|
C extern implemented
|
2016-04-29 01:14:26 -04:00 |
|
Nathan Braswell
|
2051f54b55
|
Added in sizeof intrinsic + piping for more in the future. Inbetween commit before removing sizeof function
|
2016-04-28 18:47:53 -04:00 |
|
Nathan Braswell
|
cf46fb13af
|
Add casting as a language feature. Have not removed the function yet as we need an inbetween version for the bootstrap
|
2016-04-18 22:56:29 -04:00 |
|
Nathan Braswell
|
b650a9af03
|
some bugfixes, getting closer
|
2016-03-24 21:32:28 -04:00 |
|
Nathan Braswell
|
d864a58bb4
|
Saving a lot of work on ADTs. Finishing should mostly just be filling in the different operator functions in the c_generator
|
2016-03-19 21:45:07 -04:00 |
|
Nathan Braswell
|
08125551af
|
Now computes closed_variables for each lambda, placeholder closure_struct type stuff.
|
2016-02-22 16:18:55 -05:00 |
|
Nathan Braswell
|
34f11b0874
|
Plain lambdas implemented, but not fully tested. No closures yet
|
2016-02-21 17:22:16 -05:00 |
|
Nathan Braswell
|
21034a820f
|
Finished implementing simple_passthrough
|
2016-02-17 13:37:48 -05:00 |
|
Nathan Braswell
|
3da140cc5e
|
Object templates starting to work, don't do methods properly yet, likely all have the same name
|
2016-02-13 16:56:37 -05:00 |
|
Nathan Braswell
|
dd34de7c88
|
Made a test_runner in Kraken to run the tests on Kalypso, and moved to_import.krak to simple_print.krak and ported one function over to use it instead, so that Kalypso testing can get started before implementing everything needed to use io.krak
|
2016-02-05 04:30:34 -05:00 |
|
Nathan Braswell
|
5dd8046d2f
|
Template replacements acutally propegate through the function now - but it doesn't decorate names so that same named functions with same parameters but instantiated by different types but with the resulting same prototype, so they end up having the same name in C, which needs to be addressed.
|
2016-02-04 23:32:47 -05:00 |
|
Nathan Braswell
|
de3ead0573
|
added proper template function instantiation caching
|
2016-02-03 21:57:06 -05:00 |
|
Nathan Braswell
|
70ebefcc25
|
Initial explicit function template working (chained may also not work, need to check)
|
2016-02-01 05:35:08 -05:00 |
|
Nathan Braswell
|
6f1f31a212
|
Added automatic distructor calling for going out of scope, found out that += is broken (and just comes through as =)
|
2016-01-29 22:46:09 -05:00 |
|
Nathan Braswell
|
17d4371d5c
|
Implemented init position calls
|
2016-01-28 20:51:40 -05:00 |
|
Nathan Braswell
|
135305fb76
|
The piping for defer, though not the correct stacks in c_generator. Bedtime though
|
2016-01-25 02:53:00 -05:00 |
|
Nathan Braswell
|
83a76c36de
|
continue and break statements
|
2016-01-24 17:31:41 -05:00 |
|
Nathan Braswell
|
d43f36f1d9
|
type_def variables and methods are not parsed in ast_transformation, and kind-of generated in c_generator, but access and whatnot not supported yet
|
2016-01-21 12:54:21 -05:00 |
|
Nathan Braswell
|
c943d591e0
|
Trivial objects working, fixed adt prefixing bug
|
2016-01-21 03:18:02 -05:00 |
|
Nathan Braswell
|
162cc98f30
|
Added for loops
|
2016-01-19 11:47:09 -05:00 |
|
Nathan Braswell
|
ca85edaeee
|
added while loops and fixed unary operators (including correct precrement and decrement)
|
2016-01-19 03:16:16 -05:00 |
|
Nathan Braswell
|
4493dfd861
|
added if_statements
|
2016-01-19 02:06:30 -05:00 |
|
Nathan Braswell
|
ac34a550d5
|
Basic math expressions will passthrough now
|
2016-01-18 18:04:34 -05:00 |
|
Nathan Braswell
|
bffedcf2fd
|
Add the abitlity to assign during a declaration and type inference if no type given but there is an expression
|
2016-01-17 01:10:09 -05:00 |
|
Nathan Braswell
|
9c41c2fd12
|
Added in assignment and variable usage
|
2016-01-16 22:14:59 -05:00 |
|
Nathan Braswell
|
bf570f027c
|
Variable declaration added now
|
2016-01-15 19:10:52 -05:00 |
|
Nathan Braswell
|
fe6818edfc
|
working towards function overloading, the emitted functions and function calls are now decorated and we're starting to get the prereqs for function lookup
|
2016-01-13 21:09:28 -05:00 |
|
Nathan Braswell
|
4c569f4f8c
|
Added function calls, printing out of pointers
|
2016-01-11 23:41:09 -05:00 |
|
Nathan Braswell
|
7f20a42178
|
Added type to values
|
2016-01-09 22:37:43 -05:00 |
|
Nathan Braswell
|
16aa01a76e
|
Placeholder/passthrough for all the expressions, simple value node passthrough (though if Kraken has the same literal syntax as C it'll work for a while, though it really needs to encode the type...
|
2016-01-08 00:33:05 -05:00 |
|
Nathan Braswell
|
daae39fe19
|
Added in the beginnings of pass three which can parse and emit statements and code blocks
|
2016-01-07 02:52:22 -05:00 |
|
Nathan Braswell
|
337bc424ee
|
Added in basic transformation and generation for functions
|
2016-01-06 02:46:42 -05:00 |
|
Nathan Braswell
|
79065c032f
|
We have a VERY SILL KRAKEN COMPILER\! simple_passthroughs are now emitted by the c_generator and test_compiler has been extended to write the C to a file and then call cc on it, so the self-hosted Kraken compiler can compile its very first thing\! (though that thing is a hello world C program written entirely in a simple_passthrough...
|
2016-01-04 02:00:06 -05:00 |
|