module Arborist::DSL

Direct including types

Defined in:

dsl.cr

Instance Method Summary

Instance Method Detail

def alt(strings : Array(String)) : Expr #

[View source]
def alt(alts : Array(String | Expr)) : Expr #

this is where a lot of time is spent


[View source]
def alt(strings : Set(String)) : Expr #

[View source]
def alt(*alternatives : String | Expr) : Expr #

[View source]
def apply(rule_name : String) : Expr #

[View source]
def choice(alternatives : Array(Expr)) : Expr #

[View source]
def choice(*alternatives) : Expr #

[View source]
def dot : Expr #

[View source]
def label(label : String, expr : Expr) : Expr #

[View source]
def neg(expr : Expr) : Expr #

not predicate - negative lookahead


[View source]
def opt(expr : Expr) : Expr #

this represents the optional operator ? - 0 or 1 repetitions


[View source]
def plus(expr : Expr) : Expr #

this represents 1+ repetitions


[View source]
def pos(expr : Expr) : Expr #

and predicate - positive lookahead


[View source]
def range(chars : Range(Char, Char)) : Expr #

[View source]
def seq(exprs : Array(Expr)) : Expr #

[View source]
def seq(*exprs) : Expr #

[View source]
def star(expr : Expr) : Expr #

this represents the kleene star operator - 0+ repetitions


[View source]
def term(string : String) : Expr #

[View source]