class DParse::Parsers::EOF
Public Instance Methods
expectation_message()
click to toggle source
# File lib/d-parse/parsers/primitives/eof.rb, line 16 def expectation_message 'end of input' end
inspect()
click to toggle source
# File lib/d-parse/parsers/primitives/eof.rb, line 12 def inspect 'eof()' end
read(input, pos)
click to toggle source
# File lib/d-parse/parsers/primitives/eof.rb, line 4 def read(input, pos) if input.size == pos.index Success.new(input, pos) else Failure.new(input, pos, origin: self) end end