module Arborist::DSL
Direct including types
Defined in:
dsl.crInstance Method Summary
- #alt(strings : Array(String)) : Expr
-
#alt(alts : Array(String | Expr)) : Expr
this is where a lot of time is spent
- #alt(strings : Set(String)) : Expr
- #alt(*alternatives : String | Expr) : Expr
- #apply(rule_name : String) : Expr
- #choice(alternatives : Array(Expr)) : Expr
- #choice(*alternatives) : Expr
- #dot : Expr
- #label(label : String, expr : Expr) : Expr
-
#neg(expr : Expr) : Expr
not predicate - negative lookahead
-
#opt(expr : Expr) : Expr
this represents the optional operator
?
- 0 or 1 repetitions -
#plus(expr : Expr) : Expr
this represents 1+ repetitions
-
#pos(expr : Expr) : Expr
and predicate - positive lookahead
- #range(chars : Range(Char, Char)) : Expr
- #seq(exprs : Array(Expr)) : Expr
- #seq(*exprs) : Expr
-
#star(expr : Expr) : Expr
this represents the kleene star operator - 0+ repetitions
- #term(string : String) : Expr
Instance Method Detail
this represents the optional operator ?
- 0 or 1 repetitions
this represents the kleene star operator - 0+ repetitions