class PETOOH::YY_ParsingContext
Attributes
input[R]
worst_error[RW]
It is YY_SyntaxExpectationError
or nil.
Public Class Methods
new(input)
click to toggle source
input
is IO.
# File gen/lib/petooh.rb, line 157 def initialize(input) @input = input @worst_error = nil end
Public Instance Methods
<<(error)
click to toggle source
adds possible error to this YY_ParsingContext
.
error
is YY_SyntaxExpectationError
.
# File gen/lib/petooh.rb, line 171 def << error # Update worst_error. if worst_error.nil? or worst_error.pos < error.pos then @worst_error = error elsif worst_error.pos == error.pos then @worst_error = @worst_error.or error end # return self end