Method: Parser#Prog
- Defined in:
- lib/parser.rb
#Prog ⇒ Object
private private public protected
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/parser.rb', line 18 def Prog() result = Expr() t = @scan.getToken() if t.type != :eof then print "Expected EOF. Found ", t.type, ".\n" raise ParseError.new end return result end |