From 63becc9c1a4ac3b9b283cbc35673c044932a3d4e Mon Sep 17 00:00:00 2001 From: Scarlett Date: Tue, 6 May 2025 18:47:18 -0400 Subject: [PATCH] hello. can u hear me. --- tests/programs/helloworld.alpha | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/tests/programs/helloworld.alpha b/tests/programs/helloworld.alpha index 109cae8..c889222 100644 --- a/tests/programs/helloworld.alpha +++ b/tests/programs/helloworld.alpha @@ -1,11 +1,23 @@ #include "std.alpha" -entry (arg) := { - [string: str; character: ch; integer: result] +function entry: string2integer - ch := 'h'; - str := "Hello World!"; - result := printCharacter(ch); +entry (arg) := { + [integer: result] + + result := printCharacter('H'); + result := printCharacter('e'); + result := printCharacter('l'); + result := printCharacter('l'); + result := printCharacter('o'); + result := printCharacter(' '); + result := printCharacter('W'); + result := printCharacter('o'); + result := printCharacter('r'); + result := printCharacter('l'); + result := printCharacter('d'); + result := printCharacter('!'); + result := printCharacter('\n'); return 0; } \ No newline at end of file