diff options
Diffstat (limited to 'com.c')
-rw-r--r-- | com.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,8 +7,8 @@ static void compile_node(Chunk *ch, AstNode a) { switch (a.ty) { - case AST_SYMBOL: - printf("can't compile symbol\n"); + case AST_IDENT: + printf("can't compile ident\n"); exit(1); break; case AST_STRING: @@ -23,7 +23,7 @@ static void compile_node(Chunk *ch, AstNode a) { AstVec l = a.as.list; #define CK(cond, msg) if (!(cond)) { puts(msg); exit(1); } CK(l.len == 3, "can only compile binary ops"); - CK(l.vals[0].ty == AST_SYMBOL, "can only call ops"); + CK(l.vals[0].ty == AST_IDENT, "can only call ops"); #undef CK char opchar = l.vals[0].as.str[0]; Op op; |