Commit Graph

9 Commits

Author SHA1 Message Date
Nathan Braswell
ece3844c88 Quick commit adding br instruction 2021-07-24 00:39:45 -04:00
Nathan Braswell
ca25f2ca2b Starting to add control instruction stuff, beginning with the block instruction. No nice labels or anything yet 2021-07-22 01:14:51 -04:00
Nathan Braswell
f740dd07e2 Implement locals and foldl, which is the direction we should have been folding to not reverse the params/locals anyway 2021-07-20 23:36:03 -04:00
Nathan Braswell
e271feed24 Implemented $ references for functions and parameters, which are also parsed for real now, along with the result. Setup for locals added, but not it's backend. Added pretty interesting add-dict-to-env function to collections.kp, which has also been added to put collections stuff in one place. 2021-07-20 00:37:27 -04:00
Nathan Braswell
835706c97d Add both bare WAT ins and nested WAT ins 2021-07-19 00:32:42 -04:00
Nathan Braswell
d6d7af0bc1 Super basic and a tiny bit hardcoded WAT-like syntax for generating the array of arrays of arrays of arrays wasm implementation in wasm.kp, allowing us to write psudo-WAT in kraken and output binary wasm with 1 function call 2021-07-18 23:42:19 -04:00
Nathan Braswell
d3dd37c60e Ooops, wasn't encoding numbers right at all, that's embarassing 2021-04-20 01:49:39 -04:00
Nathan Braswell
f254f11f8d Generating first (in at least wasm3) runnable code! Added type, function, export, and code sections, with instructions and whatnot! 2021-04-20 01:36:38 -04:00
Nathan Braswell
e1fd8abd4f Started working on basic wasm encoding/serialization. Added binary_file_writing, generalized arity comparison operators, bitwise operators, parsing of hex numbers, and wasm w/ memory section deserialization 2021-04-19 01:39:04 -04:00