mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Fixed unary function compile.
This commit is contained in:
@@ -372,7 +372,7 @@ func (c *Compiler) parseFunctionCall(out bool, name string) string {
|
|||||||
|
|
||||||
// buildin function
|
// buildin function
|
||||||
buildin := types.GetFunction(name)
|
buildin := types.GetFunction(name)
|
||||||
|
|
||||||
if buildin != nil {
|
if buildin != nil {
|
||||||
if buildin.Type == types.NULL {
|
if buildin.Type == types.NULL {
|
||||||
output = name
|
output = name
|
||||||
@@ -398,7 +398,7 @@ func (c *Compiler) parseUnaryFunction(name, paramsStr string, paramCount int) st
|
|||||||
if paramCount == 1 {
|
if paramCount == 1 {
|
||||||
output = name + " " + paramsStr
|
output = name + " " + paramsStr
|
||||||
} else {
|
} else {
|
||||||
output = "[" + paramsStr + "] call " + name
|
output = name + " [" + paramsStr + "]"
|
||||||
}
|
}
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|||||||
Reference in New Issue
Block a user