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:
11
comp_wasm.kp
Normal file
11
comp_wasm.kp
Normal 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 ))
|
||||
Reference in New Issue
Block a user