Class: Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(istream) ⇒ Parser

Returns a new instance of Parser.



8
9
10
# File 'lib/parser.rb', line 8

def initialize(istream)
  @scan = Scanner.new(istream)
end

Instance Method Details

#parseObject



12
13
14
# File 'lib/parser.rb', line 12

def parse()
  return Prog()
end