about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_precedence_simple.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_precedence_simple.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_precedence_simple.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_precedence_simple.txt b/js/scripting-lang/scratch_tests/test_precedence_simple.txt
new file mode 100644
index 0000000..32b5bb9
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_precedence_simple.txt
@@ -0,0 +1,21 @@
+/* Simple Precedence Test */
+
+/* Basic variables */
+x : 5;
+y : 3;
+
+/* Test 1: Simple arithmetic */
+result1 : x + y;
+..out result1;
+
+/* Test 2: Binary minus (the problematic one) */
+result2 : x - y;
+..out result2;
+
+/* Test 3: Unary minus */
+result3 : -x;
+..out result3;
+
+/* Test 4: Mixed */
+result4 : x * -y;
+..out result4; 
\ No newline at end of file