object, not table: fix user-facing terminology

The language is OOP with a single compound value, the object (an
anonymous `{...}` or a class instance); it is not Lua and has no
"tables".  The visible type name was already `object`; this fixes the
remaining user-facing wording:

- error messages: "object has no member 'x'", "object is not callable".
- README: drop the "Lua-like" phrasing; describe member objects, not
  tables.
- self-hosted front-end AST node `t="object"` (was "table"), updated
  across parser/compiler/checker.
- test comments/expected output aligned ("object:").

The internal C symbols keep the cat_types_table_* naming convention.
Suite stays 130 green.
This commit is contained in:
Minus committed 2026-11-17 23:14:17 +00:00
1 parent a73600e221
commit 7cdf388bf4
10 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ class Point
end
local p = Point(3, 4)
print("table:", tostring(t))
print("object:", tostring(t))
print("point:", tostring(p))
print("int:", tostring(42))
print("str:", tostring("hi"))