From 2ebad036127ad616714f38a61c9baaef4f00696c Mon Sep 17 00:00:00 2001
From: Altareos <8584797+Altareos@users.noreply.github.com>
Date: Thu, 24 Feb 2022 16:11:58 +0100
Subject: [PATCH] full brainfuck
---
sample/bf.pl.xml | 91 ++++++++++++++++++++++++++++++++++++++++++------
src/lib.rs | 46 ++++++++++++++++++++++++
src/main.rs | 2 +-
3 files changed, 127 insertions(+), 12 deletions(-)
diff --git a/sample/bf.pl.xml b/sample/bf.pl.xml
index 9c33d0e..6985ae6 100644
--- a/sample/bf.pl.xml
+++ b/sample/bf.pl.xml
@@ -3,8 +3,13 @@
-
-
+
+
+
+
+
+
+
@@ -19,9 +24,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -134,10 +177,14 @@
-
+
-
-
+
+
+
+
+
+
@@ -150,7 +197,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -337,11 +405,7 @@
-
-
-
-
@@ -363,6 +427,11 @@
+
diff --git a/src/lib.rs b/src/lib.rs
index b9d3686..9999365 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -832,6 +832,10 @@ mod stl {
String::from("array-length"),
Value::StdFunction(array_length),
);
+ ctx.assign(String::from("to-ascii"), Value::StdFunction(to_ascii));
+ ctx.assign(String::from("from-ascii"), Value::StdFunction(from_ascii));
+ ctx.assign(String::from("get-args"), Value::StdFunction(get_args));
+
}
fn print(vals: Vec) -> Result