bobzhang/peg/runtime does not have a README file
pub(open) trait Truthy {
fn truthy(Self) -> Bool
}impl Show for FeatureDisabledimpl Show for InvalidStartRuleimpl Show for ReferenceErrorpub(all) suberror SyntaxError {
SyntaxError(message~ : String, expected~ : Array[Expectation]?, found~ : String?, location~ : Location)
} derive(Debug)impl Show for SyntaxErrorimpl ToJson for SyntaxErrorfn[T, R] ActionContext::error(self : ActionContext[T], message : String, location? : Location) -> R raisefn[T, R] ActionContext::expected(self : ActionContext[T], description : String, location? : Location) -> R raisefn[T] ActionContext::label(self : ActionContext[T], label : String) -> Value[T] raise ReferenceErrorfn[T] ActionContext::new(state : State[T], params : ArrayView[String], args : ArrayView[Value[T]]) -> ActionContext[T]pub struct ClassMatcher {
// private fields
}fn ClassMatcher::new(parts : ArrayView[ClassPart], inverted~ : Bool, ignore_case~ : Bool) -> ClassMatcherpub(all) enum Expectation {
Literal(text~ : String, ignore_case~ : Bool)
Class(parts~ : Array[ClassPart], inverted~ : Bool, ignore_case~ : Bool)
Any
End
Other(description~ : String)
Not(Expectation)
} derive(Eq, Debug)impl ToJson for Expectationfn[T] State::cache_store(self : State[T], rule : Int, start_pos : Int, result : Slot[T], expectations : Array[Expectation]) -> Unitfn code_unit_is(input : String, pos : Int, unit : Int) -> Boolfn js_canonicalize(ch : Int) -> Intfn js_case_variants_any(ch : Int, f : (Int) -> Bool) -> Boolfn js_compare(a : String, b : String) -> Intfn js_substr(input : String, pos : Int, n : Int) -> Stringfn js_substring(s : String, start : Int, end : Int) -> Stringfn js_to_lower(s : StringView) -> Stringfn matches_ignore_case_at(input : String, pos : Int, lit : String) -> Boolfn starts_with_at(input : String, pos : Int, lit : String) -> BoolInstall
Download zipA MoonBit port of PEG.js: parser generator for MoonBit
Dependencies