diff --git a/.vscode/launch.json b/.vscode/launch.json index 4b91f3e..5574805 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "lldb-dap", "request": "launch", "program": "${command:cmake.launchTargetPath}", - "args": ["-v", "${workspaceFolder}/samples/test.brc"], + "args": ["-v", "${workspaceFolder}/samples/hello.brc"], "cwd": "${workspaceFolder}", "internalConsoleOptions": "openOnSessionStart", } diff --git a/samples/hello.brc b/samples/hello.brc new file mode 100644 index 0000000..0ed1ff9 --- /dev/null +++ b/samples/hello.brc @@ -0,0 +1,12 @@ +@extern putchar fun: character sint32 -> sint32 + +main fun -> sint32 + text data <- "Hello string!\n" + + rep i sint32 <- 0, i < 14: + putchar(text[i]) + i <- i + 1 + ; + + ret 0 +; \ No newline at end of file