boolean system

This commit is contained in:
Aidan 2020-06-28 20:06:55 -07:00
parent e7d25057f6
commit 89d6a1013b
No known key found for this signature in database
GPG key ID: 327711E983899316
5 changed files with 209 additions and 1 deletions

View file

@ -140,6 +140,55 @@ func GenFuncTable() ast.FuncTable {
},
*/
"eq": &ast.Function{
Function: eq,
Name: "==",
TimesCalled: 0,
Args: 2,
},
"ne": &ast.Function{
Function: ne,
Name: "!=",
TimesCalled: 0,
Args: 2,
},
"<": &ast.Function{
Function: lt,
Name: "<",
TimesCalled: 0,
Args: 2,
},
">": &ast.Function{
Function: gt,
Name: ">",
TimesCalled: 0,
Args: 2,
},
"<=": &ast.Function{
Function: lte,
Name: "<=",
TimesCalled: 0,
Args: 2,
},
">=": &ast.Function{
Function: gte,
Name: ">=",
TimesCalled: 0,
Args: 2,
},
"!": &ast.Function{
Function: not,
Name: "!",
TimesCalled: 0,
Args: 1,
},
"jobs": &ast.Function{
Function: jobs,
Name: "list jobs",