Class: Parser
- Inherits:
-
Object
- Object
- Parser
- Defined in:
- lib/parser.rb
Instance Method Summary collapse
-
#initialize(istream) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
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
#parse ⇒ Object
11 12 13 |
# File 'lib/parser.rb', line 11 def parse() return Prog() end |