moved a subset of source file to the kern package
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) 2024 Celestino Amoroso (celestino.amoroso@gmail.com).
|
||||
// All rights reserved.
|
||||
|
||||
// term.go
|
||||
package kern
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Term interface {
|
||||
fmt.Stringer
|
||||
// Children() []Term
|
||||
Source() string
|
||||
GetChildCount() (count int)
|
||||
GetChild(index int) Term
|
||||
GetChildSource(index int) string
|
||||
Compute(ctx ExprContext) (result any, err error)
|
||||
IsAssign() bool
|
||||
Errorf(template string, args ...any) (err error)
|
||||
}
|
||||
Reference in New Issue
Block a user