]> git.lizzy.rs Git - nothing.git/blobdiff - src/script/expr.h
(#301) Make parser support lists
[nothing.git] / src / script / expr.h
index 01dfa6064321995a394e25b6518b27dca7765255..bf77829988f25a85e9c57a9d86eab6cee3cc4f9e 100644 (file)
@@ -9,7 +9,8 @@ struct Atom;
 enum ExprType
 {
     EXPR_ATOM = 0,
-    EXPR_CONS
+    EXPR_CONS,
+    EXPR_VOID
 };
 
 // TODO(#285): there is no way to execute struct Expr
@@ -22,10 +23,9 @@ struct Expr
     };
 };
 
-
-
 struct Expr atom_as_expr(struct Atom *atom);
 struct Expr cons_as_expr(struct Cons *cons);
+struct Expr void_expr(void);
 
 void destroy_expr(struct Expr expr);
 void print_expr_as_sexpr(struct Expr expr);