File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ print := λ(: x S). (: (tail(
20
20
(if (==( (.0 x) 1u64 )) (tail(
21
21
(let c SNil)
22
22
(print '\[_s)
23
+ (print( (as (.1 (as x SCons)) U64) ))
23
24
(mov( (.1 (as x SCons)) 0u64 c ))
24
25
(print c)
25
26
(print '\s_s)
27
+ (print( (as (.2 (as x SCons)) U64) ))
26
28
(mov( (.2 (as x SCons)) 0u64 c ))
27
29
(print c)
28
30
(print '\]_s)
Original file line number Diff line number Diff line change @@ -14,11 +14,17 @@ config-mode := Compile;
14
14
main := λ(: argc U64)(: argv U8[][]).(tail(
15
15
# (let argi 0u64)
16
16
(let input_l (SAtom( 'an-atom_s )))
17
- (let input_r (SPointer( as 'test_s ?[] )))
18
- (let close_l (close( input_l )))
19
- (let close_r (close( input_r )))
20
- (let input (SCons( close_l close_r )))
21
- (print input)
17
+ (let input_o SNil)
18
+ (let close_l 0u64)
19
+ (push (close( input_l )))
20
+ (pop( close_l ))
21
+ (mov( close_l R8 ))
22
+ (mov( (as R8 S[]) 0u64 input_o ))
23
+ (print input_o)
24
+ # (push (close( input_r )))
25
+ # (pop( close_r ))
26
+ # (let input (SCons( (as close_l S[]) (as close_r S[]) )))
27
+ # (print input)
22
28
# (while (<( argi argc )) (
23
29
# (if (==( ([]( argv argi )) '--tokenize_s )) (
24
30
# (print '--tokenize_s)
You can’t perform that action at this time.
0 commit comments