forge: work in progress: constants, variables, ...

This commit is contained in:
Helmut Merz 2023-07-27 22:36:56 +02:00
parent 419bd2617b
commit 0638d39bd2

View file

@ -115,8 +115,16 @@ func (f *forgeEnv) Peek(d int) fitem {
return f.ds.Peek(d)
}
func (f *forgeEnv) Const(name string) {
}
// basic functions for executable items
func callDef(f *forgeEnv, xt XT) {
f.Call(xt.body.Value().(fptr))
}
func callData(f *forgeEnv, xt XT) {
f.Push(xt.body.Value())
}