1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00

Compare commits

...

2 commits

Author SHA1 Message Date
Natapat Samutpong 29ad3b32e8 Update README.md 2022-03-13 08:45:58 +07:00
Natapat Samutpong 6642163cd7 mix together hello world 2022-03-13 08:44:02 +07:00
3 changed files with 7 additions and 4 deletions

View file

@ -15,6 +15,8 @@ fun main: int = do
return 69;
end;
```
> The `return 69` is the exit code (like C++), try running `echo $?` to see it!
Note: Everything in this project can be changed at anytime! (I'm still finding out what work best for lots of thing) if you have an idea, feel free to create an issues about it, or even create a PR! (I'd be very happy)
# Prerequistie

View file

@ -1,4 +1,9 @@
fun main: int = do
-- Normal way of hello world
@write("Hello, World!\n");
return 69;
-- Hello world piped to @write() function
"Hello, World!\n"
|> @write();
end;

View file

@ -1,4 +0,0 @@
fun main: int = do
"Hello, World!\n"
|> @write();
end;