Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Sep 18, 2023
1 parent d2798b8 commit 53af2e1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 83 deletions.
73 changes: 2 additions & 71 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ whistle_common = { path = "../common/" }
whistle_parser = { path = "../parser/" }
whistle_ast = { path = "../ast/" }
wasm-encoder = "0.32.0"
wast = "64.0.0"
wasmprinter = "0.2.64"
wasmparser = "0.112.0"
byteorder = "1.4.3"
9 changes: 0 additions & 9 deletions compiler/src/compilers/tip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,3 @@ pub fn compile_tip_wasm_bytes(
function.raw(data);
}

pub fn compile_tip_wast(compiler: &mut Compiler, tip: Tip, _span: whistle_common::Span) {
let lexer = wast::lexer::Lexer::new(tip.value.as_str());
let buf = wast::parser::ParseBuffer::new_with_lexer(lexer).unwrap();
let ast = wast::parser::parse::<wast::Wat>(&buf)
.unwrap()
.encode()
.unwrap();
compiler.module.code.raw(&ast);
}
Binary file added test.wasm
Binary file not shown.

0 comments on commit 53af2e1

Please sign in to comment.