From 289cd9b2f6d0164660c09d4c586f71ac520950eb Mon Sep 17 00:00:00 2001 From: ellonamac Date: Mon, 1 Jul 2024 11:25:15 -0400 Subject: [PATCH 1/6] print now has a newline, but no check for comment --- src/ast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast.js b/src/ast.js index 3a34c79..c8060da 100644 --- a/src/ast.js +++ b/src/ast.js @@ -527,7 +527,7 @@ class Praxly_print { async evaluate(environment) { var child = await (this.expression.evaluate(environment)); var result = valueToString(child, this.json); - addToPrintBuffer(result); + addToPrintBuffer(result + '
'); return null; } } From 4ef254a29521eb16447b5b13f59e2a8569c36c86 Mon Sep 17 00:00:00 2001 From: ellonamac Date: Tue, 2 Jul 2024 12:27:44 -0400 Subject: [PATCH 2/6] New examples button and modal --- main.html | 28 +++++++++- public/themes.css | 132 +++++++++++++++++++++++++++------------------- src/main.js | 58 ++++++++++++-------- 3 files changed, 139 insertions(+), 79 deletions(-) diff --git a/main.html b/main.html index 28d2e41..c2bdc68 100644 --- a/main.html +++ b/main.html @@ -41,7 +41,30 @@

Praxly 🍂

- + +
+
+ close + +
+

Here are some example programs to practice with!

+

Click on the blue links to browse and try out some sample code.

+
+ + +
+ + + + + + +
Example NameDifficultyTopics
+
+ + +
+
@@ -86,7 +109,8 @@

Praxly 🍂

+ +