From 0aeff1a757908bdc8972bca20330752858cbb903 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Fri, 16 Aug 2024 23:29:12 +0300 Subject: Big Refactoring, added support for comments --- src/main/resources/lv/enes/orang/prelude.orang | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/main/resources/lv/enes/orang/prelude.orang (limited to 'src/main/resources') 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 @@ -def isRepl = __builtin_isRepl () -def len arrayOrString = __builtin_len arrayOrString -def parseInt stringOrInt = __builtin_parseInt stringOrInt -def print anything = __builtin_print anything -def printLn x = do print x; print "\n"; x end -def randInt min max = __builtin_randInt min max -def readInt _ = parseInt (readLn ()) -def readLn _ = __builtin_readLn () - -def _ = - if isRepl then do - printLn "Hello! This is the Orang Programming Language!"; - printLn "You can execute code right here at the prompt."; - printLn "If you wish to load & execute a file, use `:l filename.orang'."; - printLn "If you wish to quit, use `:q'."; - printLn "Have a nice day :)"; - printLn "" - end else - () - -- cgit v1.2.3