summaryrefslogtreecommitdiff
path: root/DSL/StdLib.hs
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-02-24 23:03:33 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-02-24 23:03:33 +1300
commit1977b7ad1e86d2b922737eb04741607e9c9a991a (patch)
tree24653cb78f5411e79d1ede853115ca38ccd80aa4 /DSL/StdLib.hs
parentb89d46e7df8ae65786abe37b5703392e9042db83 (diff)
Better printing functionsmain
Diffstat (limited to 'DSL/StdLib.hs')
-rw-r--r--DSL/StdLib.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/DSL/StdLib.hs b/DSL/StdLib.hs
index 09c5338..748825e 100644
--- a/DSL/StdLib.hs
+++ b/DSL/StdLib.hs
@@ -21,6 +21,7 @@ sources = [ div'
, lteq
, gteq
, neq
+ , putLn
]
div' :: String
@@ -38,3 +39,6 @@ gteq = "PROC >= OVER OVER == ROT > || END"
neq :: String
neq = "PROC != == ! END"
+putLn :: String
+putLn = "PROC PUTLN PUT \"\n\" PUT END"
+