the function call procedure now check the number of actual parameters against the numer of formal parameters

This commit is contained in:
2024-05-04 22:35:03 +02:00
parent 0fdd51049d
commit 1d8569d3a9
5 changed files with 32 additions and 8 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func (self *ast) addToken2(tk *Token) (t *term, err error) {
if t = newTerm(tk, nil); t != nil {
err = self.addTerm(t)
} else {
err = tk.Errorf("No term constructor for token %q", tk.String())
err = tk.Errorf("unexpected token %q", tk.String())
}
return
}