feature/issue-1: built out the core libraries #3

Merged
lmika merged 8 commits from feature/issue-1 into main 2024-09-06 23:38:05 +00:00
2 changed files with 0 additions and 18 deletions
Showing only changes of commit e187ff0194 - Show all commits

View file

@ -432,20 +432,6 @@ func concatBuiltin(ctx context.Context, args invocationArgs) (object, error) {
return strObject(sb.String()), nil
}
//
//func catBuiltin(ctx context.Context, args invocationArgs) (object, error) {
// if err := args.expectArgn(1); err != nil {
// return nil, err
// }
//
// filename, err := args.stringArg(0)
// if err != nil {
// return nil, err
// }
//
// return &fileLinesStream{filename: filename}, nil
//}
func callBuiltin(ctx context.Context, args invocationArgs) (object, error) {
if err := args.expectArgn(1); err != nil {
return nil, err

View file

@ -89,10 +89,6 @@ func New(opts ...InstOption) *Inst {
rootEC.addMacro("foreach", macroFunc(foreachBuiltin))
rootEC.addMacro("proc", macroFunc(procBuiltin))
//rootEC.addCmd("testTimebomb", invokableStreamFunc(errorTestBuiltin))
rootEC.setOrDefineVar("hello", strObject("world"))
inst := &Inst{
out: os.Stdout,
rootEC: rootEC,