Move the builtins, with their checksums, layouts and transforms, into internal/builtinfunc, and check calc's operands in the engine

This commit is contained in:
2026-10-05 15:30:19 +02:00
committed by Lillem4n
parent 9357abb279
commit 3bb96ded91
11 changed files with 298 additions and 238 deletions
-7
View File
@@ -8,13 +8,6 @@ import (
"github.com/larvit/fejkdata/internal/grammar"
)
// rng is the randomness a builtin sample draws from, which *drawstate.State satisfies. The
// render path takes the concrete type instead, which keeps its draws off the heap.
type rng interface {
IntN(n int) int
Float64() float64
}
// Fake generates a value for a dot path. Each segment descends one level: folder
// names and the category (JSON file) come first, then named fields within it,
// e.g. "sv_SE.address" or "sv_SE.address.street". Choices along the way are