about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_alternative_syntax.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_alternative_syntax.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_alternative_syntax.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_alternative_syntax.txt b/js/scripting-lang/scratch_tests/test_alternative_syntax.txt
new file mode 100644
index 0000000..94b25cf
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_alternative_syntax.txt
@@ -0,0 +1,18 @@
+/* Test alternative syntax for -5 + 3 */
+
+/* Original (failing) */
+test1 : -5 + 3;
+
+/* Alternative 1: Parenthesized */
+test2 : (-5) + 3;
+
+/* Alternative 2: Using negate function */
+test3 : negate 5 + 3;
+
+/* Alternative 3: Using subtract */
+test4 : 0 - 5 + 3;
+
+..out test1;
+..out test2;
+..out test3;
+..out test4; 
\ No newline at end of file
ram <vc@akkartik.com> 2017-11-05 01:47:03 -0800 4107' href='/akkartik/mu/commit/continuation4.mu?h=hlt&id=4c5136859dce2bc752e60b450f64c62ee7e66815'>4c513685 ^
4a48bedc ^
4c513685 ^
01ce563d ^
58d918de ^
4c513685 ^

5059f32d ^
4c513685 ^

58d918de ^


5059f32d ^
dd660682 ^
4c513685 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47