Forgor a file

master
Able 2022-12-06 12:42:07 -06:00
parent cd71815158
commit 6a1c1b42aa
Signed by untrusted user: able
GPG Key ID: 0BD8B45C30DCA887
1 changed files with 9 additions and 2 deletions

View File

@ -9,18 +9,25 @@ use crate::tokenizer::Token;
fn main() {
// Read the contents of the file into a string
let contents =
fs::read_to_string("programs/wat2wasm/assets/add.wat").expect("Failed to read file");
fs::read_to_string("programs/wat2wasm/assets/complex.wat").expect("Failed to read file");
let mut lex = Token::lexer(&contents);
let lex = Token::lexer(&contents);
for toke in lex {
println!("{:?}", toke);
}
}
#[non_exhaustive]
#[derive(Debug, PartialEq)]
pub enum WasmType {
I32,
I64,
F32,
F64,
}
#[non_exhaustive]
#[derive(Debug, PartialEq)]
pub enum WasmOperation {
Add,
}