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

This commit is contained in:
Nathan Braswell
2021-04-19 01:39:04 -04:00
parent ed3b2ce743
commit e1fd8abd4f
5 changed files with 177 additions and 26 deletions

11
comp_wasm.kp Normal file
View File

@@ -0,0 +1,11 @@
(with_import "./wasm.kp"
(let (
_ (println "args" *ARGV*)
(_ _ in out) (cond (!= (len *ARGV*) 4) (error "wrong number of params")
true *ARGV*)
_ (println "in" in "out" out)
wasm_code [
]
_ (write_file out (wasm_to_binary wasm_code))
return_code 0
) return_code ))