Added default nil argument kind

This commit is contained in:
Sasha Koshka 2022-08-17 01:07:12 -04:00
parent 0ad1c0b2f4
commit 7bb6582e01

View File

@ -143,8 +143,8 @@ func (phrase *Phrase) ToString (indent int, breakLine bool) (output string) {
func (argument *Argument) ToString (indent int, breakLine bool) (output string) {
if !breakLine { indent = 0 }
if argument.value == nil {
output += "NIL ARGUMENT"
if argument.kind == ArgumentKindNil {
output += "NIL-ARGUMENT"
if breakLine { output += "\n" }
return
}