Class: GhostWheel::Expression::EndOfFile

Inherits:
GhostWheel::Expression show all
Includes:
Singleton
Defined in:
lib/ghost_wheel/expression/end_of_file.rb

Instance Method Summary collapse

Methods inherited from GhostWheel::Expression

#==, #parse

Instance Method Details

#uncached_parse(scanner, cache) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/ghost_wheel/expression/end_of_file.rb', line 10

def uncached_parse(scanner, cache)
  if scanner.eos?
    EmptyParseResult.instance
  else
    FailedParseResult.instance
  end
end