Register a transform once, and derive the calls a typed column's error offers from builtin.number

This commit is contained in:
2026-09-25 08:43:58 +02:00
committed by Lillem4n
parent a048cdd73c
commit d81cfd5757
5 changed files with 40 additions and 21 deletions
+3 -2
View File
@@ -119,8 +119,9 @@ type builtin struct {
// for a builtin that reads none.
operands func(args []string) []string
// number proves what a call prints, token its body: the bounds of its number and the
// datatype of its text; nil for a builtin whose text is no number.
number func(token string, args []string) proven
// datatype of its text, prints or one inside it; nil for a builtin whose text is no number.
prints DataType
number func(token string, prints DataType, args []string) proven
}
// funcCall splits a "{token}" body shaped name(args) into its parts; ok is false