mirror of
https://github.com/MorizzG/MLox.git
synced 2025-12-06 04:22:41 +00:00
implemented calls
This commit is contained in:
parent
8d445cc9e4
commit
be931b7214
6 changed files with 115 additions and 55 deletions
20
lox.t/run.t
20
lox.t/run.t
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue