implemented calls

This commit is contained in:
Moritz Gmeiner 2024-08-27 20:32:05 +02:00
commit be931b7214
6 changed files with 115 additions and 55 deletions

View file

@ -162,23 +162,33 @@ file break/while.lox
file call/bool.lox
$ mlox call/bool.lox
$ mlox call/bool.lox
RuntimeError at line 1, column 4: Bool object is not callable
[1]
file call/nil.lox
$ mlox call/nil.lox
$ mlox call/nil.lox
RuntimeError at line 1, column 3: Nil object is not callable
[1]
file call/num.lox
$ mlox call/num.lox
$ mlox call/num.lox
RuntimeError at line 1, column 3: Number object is not callable
[1]
file call/object.lox
$ mlox call/object.lox
$ mlox call/object.lox
ParserError at line 1, column 0: Expected valid expression, got Class instead
[1]
file call/string.lox
$ mlox call/string.lox
$ mlox call/string.lox
RuntimeError at line 1, column 5: String object is not callable
[1]
file class/empty.lox