File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " lambda_mountain"
3
- version = " 1.11.87 "
3
+ version = " 1.11.88 "
4
4
authors = [" Andrew <andrew@subarctic.org>" ]
5
5
license = " MIT"
6
6
description = " Lambda Mountain"
Original file line number Diff line number Diff line change @@ -194,17 +194,15 @@ print := λ(: x I8). (: (tail(
194
194
(label start )
195
195
(mov( R8 0u64 c1 ))
196
196
(mov( R9 0u64 c2 ))
197
- (if (==( c1 c2 )) () (jmp end-false))
198
- (if (==( c1 0u8 )) () (jmp end-true))
197
+ (if (==( c1 c2 )) (mov( 1u64 RAX )) (mov( 0u64 RAX )) )
198
+ (cmp( 0u64 RAX ))
199
+ (je end)
200
+ (if (==( c1 0u8 )) (mov( 1u64 RAX )) (mov( 0u64 RAX )) )
201
+ (cmp( 1u64 RAX ))
202
+ (je end)
199
203
(inc R8)
200
204
(inc R9)
201
205
(jmp start)
202
- (label end-true)
203
- (mov( 1u64 RAX ))
204
- (jmp( end ))
205
- (label end-false)
206
- (mov( 0u64 RAX ))
207
- (jmp( end ))
208
206
(label end)
209
207
(as RAX U64)
210
208
)) U64);
Original file line number Diff line number Diff line change @@ -6,9 +6,13 @@ import STDLIB/default-stdlib.lm;
6
6
7
7
import STRICT/utility.lm;
8
8
9
- config-preprocess := 1u8 ;
9
+ config-preprocess := 2u8 ;
10
10
11
11
main := λ(: argc U64)(: argv U8[][]).(tail(
12
+ (print( (==( '--macro_s '--macro_s )) ))
13
+ (print( (==( '--macro_s '--nomacro_s )) ))
14
+ (print( (==( '--nomacro_s '--macro_s )) ))
15
+ (print( (==( '--nomacro_s '--nomacro_s )) ))
12
16
(match '--nomacro_s (
13
17
()
14
18
('--macro_s (set config-preprocess 1u8))
You can’t perform that action at this time.
0 commit comments