From 6c1f5cf72ffd6ed9a3f70395881613fa53e27758 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 26 Mar 2024 01:39:31 -0400 Subject: Better hello --- tnslc/tnslc.tnsl | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'tnslc/tnslc.tnsl') diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl index f9b26c7..89fe80b 100644 --- a/tnslc/tnslc.tnsl +++ b/tnslc/tnslc.tnsl @@ -7,24 +7,14 @@ :import "compile/compile.tnsl" +~uint8 HELLO = "hello world\n\0" + /; main [int] utils.Vector vec vec.init(1) - vec.push_char('h') - vec.push_char('e') - vec.push_char('l') - vec.push_char('l') - vec.push_char('o') - vec.push_char(' ') - vec.push_char('w') - vec.push_char('o') - vec.push_char('r') - vec.push_char('l') - vec.push_char('d') - vec.push_char('\n') - vec.push_char(0) + vec.push_cstr(HELLO) _printf(vec.data) -- cgit v1.2.3