wain-syntax-binary
wain-syntax-binary
is a crate to parse WebAssembly binary format files.
This crate is part of larger wain project.
Installation
[]
= "0"
Usage
Using wain_syntax_binary::parse()
is the easiest way.
extern crate wain_syntax_binary;
use fs;
use parse;
let source = read.unwrap;
match parse
For the syntax tree structure parsed by this library, please see wain-ast crate.
Using Parser
struct, it can parse part of Wasm binary.
extern crate wain_syntax_binary;
use fs;
use Parser;
use DataSegment;
let source = read.unwrap;
// Parse only data segment
let data: = Parser.parse.unwrap;
Working examples can be seen at examples/api/ directory
Please read documentation (not yet) for details.