Skip to content

Commit 9a4232b

Browse files
next case to print SAtom
1 parent dc1695b commit 9a4232b

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

STDLIB/default-stdlib.lm

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ type S (SNil)
55
| (SPointer( ?[] ));
66

77
print := λ(: x S). (: (tail(
8-
# (if (==( (.0 x) 3u64 )) (
8+
(if (==( (.0 x) 3u64 )) (
99
(print '\[\]_s)
10-
# ) (
11-
# (print 'NotNil_s)
12-
# (if (==( (.0 x) 2u64 )) (
13-
# (print (.1 (as x SAtom)))
14-
# ) (
15-
# (print 'TODO-print-S_s)
16-
# ))
17-
# ))
10+
) (
11+
(if (==( (.0 x) 2u64 )) (
12+
(print (.1 (as x SAtom)))
13+
) (
14+
(print (.0 x))
15+
))
16+
))
1817
()
1918
)) Nil);
2019

STRICT/cli.lm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config-mode := Compile;
1313

1414
main := λ(: argc U64)(: argv U8[][]).(tail(
1515
(let argi 0u64)
16-
(let input SNil)
16+
(let input (SAtom( 'test_s )))
1717
(while (<( argi argc )) (
1818
(print input)
1919
# (if (==( ([]( argv argi )) '--tokenize_s )) (

0 commit comments

Comments
 (0)