parser/ast: update println -> putstr

This commit is contained in:
2026-01-28 07:13:41 +00:00
parent e5152aac67
commit 947e05cdc8
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ typedef enum
typedef enum
{
AST_PRIM_NIL = 0,
AST_PRIM_PRINTLN,
AST_PRIM_PUTSTR,
NUM_AST_PRIMS,
} ast_prim_t;

View File

@@ -15,8 +15,8 @@ const char *ast_prim_to_cstr(ast_prim_t prim)
{
case AST_PRIM_NIL:
return "nil";
case AST_PRIM_PRINTLN:
return "println";
case AST_PRIM_PUTSTR:
return "putstr";
default:
FAIL("Unexpected AST primitive value: %d\n", prim);
}