class DParse::Parsers::Any
Public Instance Methods
expectation_message()
click to toggle source
# File lib/d-parse/parsers/primitives/any.rb, line 17 def expectation_message 'any character except end of file' end
inspect()
click to toggle source
# File lib/d-parse/parsers/primitives/any.rb, line 13 def inspect 'any()' end
read(input, pos)
click to toggle source
# File lib/d-parse/parsers/primitives/any.rb, line 4 def read(input, pos) char = input[pos.index] if char Success.new(input, pos.advance(char)) else Failure.new(input, pos, origin: self) end end