From 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 1 Oct 2026 01:04:30 +0200 Subject: WIP sym + cgen --- examples/hello.prs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/hello.prs (limited to 'examples/hello.prs') diff --git a/examples/hello.prs b/examples/hello.prs new file mode 100644 index 0000000..4ba371a --- /dev/null +++ b/examples/hello.prs @@ -0,0 +1,20 @@ +* hello world example + +public function main + globals + myptr pointer to int + types + socket prototype + linkage + fd int + procedure returning fd + + vfprintf prototype + procedure + + myalias alias int + procedure + display "socket=" socket etc + display ", vfprintf=" vfprintf + display "this is a string" + display cast "this is a string" to pointer to void -- cgit v1.2.3