plotnik-core 0.3.2

Core data structures for Plotnik
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Grammar types for tree-sitter grammars.
//!
//! This module provides types for representing tree-sitter `grammar.json` files,
//! with support for JSON deserialization and compact binary serialization.

mod binary;
mod json;
mod types;

#[cfg(test)]
mod binary_tests;
#[cfg(test)]
mod json_tests;

pub use json::GrammarError;
pub use types::{Grammar, Precedence, PrecedenceEntry, Rule};