fix variable declaration syntax
This commit is contained in:
parent
19a16d8de0
commit
5a0a7e21f5
1 changed files with 4 additions and 5 deletions
|
|
@ -23,13 +23,12 @@ import (
|
|||
)
|
||||
|
||||
func export(input *ast.Token, vars ast.VarTable, funcs ast.FuncTable) *ast.Token {
|
||||
input = input.Eval(funcs, vars, false)
|
||||
|
||||
name := input
|
||||
form := name.Next
|
||||
if name.Tag != ast.STRING {
|
||||
|
||||
form := name.Next.Eval(funcs, vars, false)
|
||||
if name.Tag != ast.SYMBOL {
|
||||
log.Log(log.ERR,
|
||||
"non string handed to name arg",
|
||||
"first arg should be a symbol",
|
||||
"export")
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue