add split function

This commit is contained in:
Aidan 2020-08-14 15:59:38 -07:00
parent 546e1711e5
commit 37e6e24447
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 49 additions and 0 deletions

View file

@ -143,6 +143,13 @@ func GenFuncTable() ast.FuncTable {
Args: -1,
},
"split": &ast.Function{
Function: Split,
Name: "split",
TimesCalled: 0,
Args: 2,
},
"exit": &ast.Function{
Function: ExitShell,
Name: "exit",