Start work on a WASM binding
This commit is contained in:
parent
82ccc0e56d
commit
1fc0525940
11 changed files with 737 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue