Top Level Namespace
Defined Under Namespace
Modules: Hivemind
Classes: And, Apply, Binary, Combinator, Join, Lit, Many, Mat, Maybe, Or, Ref
Instance Method Summary
collapse
Instance Method Details
#apply(combinator, &transformation) ⇒ Object
196
197
198
|
# File 'lib/hivemind/combinators.rb', line 196
def apply(combinator, &transformation)
Apply.new(combinator, &transformation)
end
|
#literal(value) ⇒ Object
184
185
186
|
# File 'lib/hivemind/combinators.rb', line 184
def literal(value)
Literal.new(value)
end
|
#many(combinator) ⇒ Object
188
189
190
|
# File 'lib/hivemind/combinators.rb', line 188
def many(combinator)
Many.new(combinator)
end
|
#match(regex) ⇒ Object
200
201
202
|
# File 'lib/hivemind/combinators.rb', line 200
def match(regex)
Match.new(regex)
end
|
#maybe(combinator) ⇒ Object
192
193
194
|
# File 'lib/hivemind/combinators.rb', line 192
def maybe(combinator)
Maybe.new(combinator)
end
|