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.



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

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

Instance Method Details

#parseObject



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

def parse
  return Prog()
end