module

Arborist::DSL

Instance methods

alt(strings : Array(String)) : Expr
Source
alt(alts : Array(String | Expr)) : Expr

this is where a lot of time is spent

Source
alt(strings : Set(String)) : Expr
Source
alt(*alternatives : String | Expr) : Expr
Source
apply(rule_name : String) : Expr
Source
choice(alternatives : Array(Expr)) : Expr
Source
choice(*alternatives) : Expr
Source
label(label : String, expr : Expr) : Expr
Source
neg(expr : Expr) : Expr

not predicate - negative lookahead

Source
opt(expr : Expr) : Expr

this represents the optional operator ? - 0 or 1 repetitions

Source
plus(expr : Expr) : Expr

this represents 1+ repetitions

Source
pos(expr : Expr) : Expr

and predicate - positive lookahead

Source
range(chars : Range(Char, Char)) : Expr
Source
seq(exprs : Array(Expr)) : Expr
Source
seq(*exprs) : Expr
Source
star(expr : Expr) : Expr

this represents the kleene star operator - 0+ repetitions

Source
term(string : String) : Expr
Source