parser/ast: update println -> putstr
This commit is contained in:
@@ -26,7 +26,7 @@ typedef enum
|
|||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
AST_PRIM_NIL = 0,
|
AST_PRIM_NIL = 0,
|
||||||
AST_PRIM_PRINTLN,
|
AST_PRIM_PUTSTR,
|
||||||
|
|
||||||
NUM_AST_PRIMS,
|
NUM_AST_PRIMS,
|
||||||
} ast_prim_t;
|
} ast_prim_t;
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ const char *ast_prim_to_cstr(ast_prim_t prim)
|
|||||||
{
|
{
|
||||||
case AST_PRIM_NIL:
|
case AST_PRIM_NIL:
|
||||||
return "nil";
|
return "nil";
|
||||||
case AST_PRIM_PRINTLN:
|
case AST_PRIM_PUTSTR:
|
||||||
return "println";
|
return "putstr";
|
||||||
default:
|
default:
|
||||||
FAIL("Unexpected AST primitive value: %d\n", prim);
|
FAIL("Unexpected AST primitive value: %d\n", prim);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user