Sign in

    tonyfettes/tree_sitter/grammar does not have a README file

    GrammarParseError

    type GrammarParseError derive(Show)

    Grammar

    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?
    } derive(Show)

    impl ToJson for Grammar

    Grammar::from_json

    fn Grammar::from_json(json : Json) -> Grammar raise GrammarParseError

    PrecType

    type PrecType derive(Eq, Hash)

    PrecValue

    type PrecValue derive(Eq, Hash, Show)

    Rule

    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)
    } derive(Eq, Hash, Show)

    RuleName

    type RuleName derive(Show)

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io