File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed
Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " lambda_mountain"
3- version = " 1.11.76 "
3+ version = " 1.11.77 "
44authors = [" Andrew <andrew@subarctic.org>" ]
55license = " MIT"
66description = " Lambda Mountain"
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ macro ( ('let x y) )
44
55macro ('match t ps) (tail(
66 (let (uuid term) t)
7- # (let (uuid matched) ())
8-
9- # (let (uuid return) ())
10- (print (uuid term))
11- # (match-pats( (uuid term) (uuid matched) (uuid return) ps ))
12- # (uuid return)
7+ (match-pats( (uuid term) ps (fail PatternMatchFailure_s) ))
138));
9+
10+ macro ('match-pats( term ps remainder )) (
11+ remainder
12+ );
13+
1414#macro ('match-pats( term matched return () )) ();
1515#macro ('match-pats( term matched return (ps (lhs rhs)) )) (
1616# (match-pats( term matched return ps ))
Original file line number Diff line number Diff line change @@ -37,6 +37,17 @@ print := λ(: x S). (: (tail(
3737 ()
3838)) Nil);
3939
40+ fail := λ(: msg Array<U8,?>). (: (tail(
41+ (print msg)
42+ (exit 1u64)
43+ )) Nil);
44+
45+ exit := λ(: code U64). (: (tail(
46+ (mov( 60u64 RAX ))
47+ (mov( code RDI ))
48+ (syscall())
49+ )) Nil);
50+
4051print := λ(: x Array<U8,?>). (: (tail(
4152 (mov( x R15 ))
4253 (mov( 0u64 RDX )) # data length
You can’t perform that action at this time.
0 commit comments