diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-05 11:35:53 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-05 11:35:53 -0500 |
| commit | 2c4324670ff569ede360d13875c5e4b5720a626d (patch) | |
| tree | 626a779c6136ce6edd580773b8bc66dfd0804f9f /environment.c | |
| parent | 899e2cd3f1ea5f598947c7862d8f76378191b369 (diff) | |
Add print() as alias for say()
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 093b8c79..3b4bb62a 100644 --- a/environment.c +++ b/environment.c @@ -36,6 +36,10 @@ env_t *new_compilation_unit(CORD libname) FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE, .next=new(arg_t, .name="newline", .type=Type(BoolType), .default_val=FakeAST(Bool, true))), .ret=Type(VoidType))}}, + {"print", {.code="say", .type=Type( + FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE, + .next=new(arg_t, .name="newline", .type=Type(BoolType), .default_val=FakeAST(Bool, true))), + .ret=Type(VoidType))}}, {"ask", {.code="ask", .type=Type( FunctionType, .args=new(arg_t, .name="prompt", .type=TEXT_TYPE, .next=new(arg_t, .name="bold", .type=Type(BoolType), |
