Start work on a WASM binding

This commit is contained in:
Max Brunsfeld 2019-04-23 14:29:46 -07:00
parent 82ccc0e56d
commit 1fc0525940
11 changed files with 737 additions and 4 deletions

View file

@ -15,7 +15,7 @@ mod grammars;
mod nfa;
mod node_types;
mod npm_files;
mod parse_grammar;
pub mod parse_grammar;
mod prepare_grammar;
mod render;
mod rules;

View file

@ -64,8 +64,8 @@ enum RuleJSON {
}
#[derive(Deserialize)]
struct GrammarJSON {
name: String,
pub(crate) struct GrammarJSON {
pub(crate) name: String,
rules: Map<String, Value>,
conflicts: Option<Vec<Vec<String>>>,
externals: Option<Vec<RuleJSON>>,