summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-08-16 23:29:12 +0300
committerGravatar Uko Kokņevičs2024-08-16 23:29:12 +0300
commit0aeff1a757908bdc8972bca20330752858cbb903 (patch)
tree46dde2d01f6d95aa911271c43844765433360de4 /src/main/resources
parentSmall improvements (diff)
downloadorang-0aeff1a757908bdc8972bca20330752858cbb903.tar.gz
orang-0aeff1a757908bdc8972bca20330752858cbb903.tar.xz
orang-0aeff1a757908bdc8972bca20330752858cbb903.zip
Big Refactoring, added support for comments
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/lv/enes/orang/prelude.orang20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/resources/lv/enes/orang/prelude.orang b/src/main/resources/lv/enes/orang/prelude.orang
deleted file mode 100644
index 36bf197..0000000
--- a/src/main/resources/lv/enes/orang/prelude.orang
+++ /dev/null
@@ -1,20 +0,0 @@
1def isRepl = __builtin_isRepl ()
2def len arrayOrString = __builtin_len arrayOrString
3def parseInt stringOrInt = __builtin_parseInt stringOrInt
4def print anything = __builtin_print anything
5def printLn x = do print x; print "\n"; x end
6def randInt min max = __builtin_randInt min max
7def readInt _ = parseInt (readLn ())
8def readLn _ = __builtin_readLn ()
9
10def _ =
11 if isRepl then do
12 printLn "Hello! This is the Orang Programming Language!";
13 printLn "You can execute code right here at the prompt.";
14 printLn "If you wish to load & execute a file, use `:l filename.orang'.";
15 printLn "If you wish to quit, use `:q'.";
16 printLn "Have a nice day :)";
17 printLn ""
18 end else
19 ()
20