fix func declaration syntax

This commit is contained in:
Aidan 2020-07-08 19:39:09 -07:00
parent 5a0a7e21f5
commit 93cd5c5a48
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -24,9 +24,9 @@ import (
func decl_func(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token { func decl_func(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
name := input name := input
if name.Tag != ast.STRING { if name.Tag != ast.SYMBOL {
log.Log(log.ERR, log.Log(log.ERR,
"non string handed to name arg", "argument 1 of func must be a symbol to be exported",
"func") "func")
return nil return nil
} }