Class: TRuby::ParserCombinator::Fail
- Defined in:
- lib/t_ruby/parser_combinator.rb
Overview
Always fail
Instance Method Summary collapse
-
#initialize(message) ⇒ Fail
constructor
A new instance of Fail.
- #parse(input, position = 0) ⇒ Object
Methods inherited from Parser
#<<, #>>, #between, #flat_map, #label, #lookahead, #many, #many1, #map, #not_followed_by, #optional, #sep_by, #sep_by1, #|
Constructor Details
#initialize(message) ⇒ Fail
Returns a new instance of Fail.
203 204 205 |
# File 'lib/t_ruby/parser_combinator.rb', line 203 def initialize() = end |
Instance Method Details
#parse(input, position = 0) ⇒ Object
207 208 209 |
# File 'lib/t_ruby/parser_combinator.rb', line 207 def parse(input, position = 0) ParseResult.failure(, input, position) end |