bobzhang/peg/ast does not have a README file
pub(all) struct Grammar {
initializer : Initializer?
rules : Array[Rule]
comments : Array[(Int, Comment)]?
location : Location
literals : Array[String]?
classes : Array[ClassConst]?
expectations : Array[Expectation]?
functions : Array[FunctionConst]?
code : String?
} derive(Debug)impl ToJson for Initializerpub(all) enum Kind {
Named(name~ : String, Node)
Choice(Array[Node])
Action(Node, code~ : String)
Sequence(Array[Node])
Labeled(label~ : String?, pick~ : Bool, Node)
Text(Node)
SimpleAnd(Node)
SimpleNot(Node)
Optional(Node)
ZeroOrMore(Node)
OneOrMore(Node)
Group(Node)
SemanticAnd(code~ : String)
SemanticNot(code~ : String)
RuleRef(name~ : String)
Literal(value~ : String, ignore_case~ : Bool)
Class(parts~ : Array[ClassPart], inverted~ : Bool, ignore_case~ : Bool)
Any
} derive(Debug)Install
Download zipA MoonBit port of PEG.js: parser generator for MoonBit
Dependencies