fix type-to-string conv. + fix binary type check + add modulo + rework import (now include)
Some checks failed
/ test (push) Failing after 41s

This commit is contained in:
Neemek 2026-07-13 23:34:19 +02:00
parent 91baf28fdf
commit 575fd8e37a
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
7 changed files with 131 additions and 91 deletions

View file

@ -150,7 +150,8 @@ func makeChunk(ctx *Context, fpath string, ignoreWarnings bool) (*core.Chunk, er
if ctx.Debug {
log.Println("Compiling parse tree")
}
err = c.Compile(tree)
_, err = c.Compile(tree)
if err != nil {
var e core.FormatedError
if errors.As(err, &e) {
@ -296,7 +297,7 @@ func (cmd *ReplCmd) Run(ctx *Context) error {
}
c.SetSource(src)
if err = c.Compile(prog); err != nil {
if _, err = c.Compile(prog); err != nil {
var e core.FormatedError
if errors.As(err, &e) {
log.Print(e.Format())