file operations in stdlib

This commit is contained in:
Aidan 2020-07-02 19:35:22 -07:00
parent 1802bce604
commit de3e3e5d4e
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 177 additions and 1 deletions

View file

@ -43,9 +43,9 @@ func not(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
func eq(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
out := ast.TRUE
second := in.Next
in = in.Eval(ft, vt, false)
second := in.Next
if in.Tag != second.Tag {
out = ast.FALSE