Merge "Disable "__builtin_func" when converting mk to bp" into main

This commit is contained in:
Treehugger Robot
2024-03-26 02:30:35 +00:00
committed by Gerrit Code Review
2 changed files with 18 additions and 4 deletions

View File

@@ -14,9 +14,7 @@
package parser
import (
"strings"
)
import "strings"
type Scope interface {
Get(name string) string
@@ -88,7 +86,7 @@ func (v Variable) EvalFunction(scope Scope) ([]string, bool) {
if fname == "call" {
return scope.Call(argVals[0], argVals[1:]), true
} else {
return []string{"__builtin_func:" + fname + " " + strings.Join(argVals, " ")}, true
return []string{"UNSUPPORTED FUNCTION:" + fname + " " + strings.Join(argVals, " ")}, true
}
}
}