tonyfettes/tree_sitter/grammar does not have a README file
pub struct Grammar { schema : String name : String rules : Map[String, Rule] extras : Array[Rule] supertypes : Array[RuleName] reserved : Map[String, Rule] precedences : Array[Array[Rule]] externals : Array[Rule] inline : Array[RuleName] conflicts : Array[Array[RuleName]] word : RuleName?}
impl Show for Grammar
fn output(Grammar, Logger) -> Unit
impl ToJson for Grammar
fn to_json(Grammar) -> Json
impl FromJson for Grammar
fn from_json(Json, @moonbitlang/core/json.JsonPathJsonPath) -> Grammar!@moonbitlang/core/json.JsonDecodeErrorJsonDecodeError
fn Grammar::from_json(json : Json) -> Grammar!GrammarParseError
type GrammarParseError
impl Show for GrammarParseError
fn output(GrammarParseError, Logger) -> Unit
type PrecType
impl Eq for PrecType
fn op_equal(PrecType, PrecType) -> Bool
impl Hash for PrecType
fn hash_combine(PrecType, Hasher) -> Unit
type PrecValue
impl Eq for PrecValue
fn op_equal(PrecValue, PrecValue) -> Bool
impl Hash for PrecValue
fn hash_combine(PrecValue, Hasher) -> Unit
impl Show for PrecValue
fn output(PrecValue, Logger) -> Unit
pub enum Rule { Alias(Bool, String, Rule) Blank Symbol(String) String(String) Repeat(Rule) Repeat1(Rule) Choice(Array[Rule]) Seq(Array[Rule]) Field(String, Rule) Token(Bool, Rule) Prec(PrecType, PrecValue, Rule) Pattern(String)}
impl Eq for Rule
fn op_equal(Rule, Rule) -> Bool
impl Hash for Rule
fn hash_combine(Rule, Hasher) -> Unit
impl Show for Rule
fn output(Rule, Logger) -> Unit
type RuleName
impl Show for RuleName
fn output(RuleName, Logger) -> Unit
Install
A MoonBit binding to the tree-sitter parsing library
No dependents
Powered by MoonBit
© 2026 mooncakes.io