-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1211 from andrew-johnson-4/lm-to-lsts-fwelq
t
- Loading branch information
Showing
56 changed files
with
21,536 additions
and
21,534 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,2 @@ | ||
|
||
import PLATFORM/C/LIB/common-macros.lm; | ||
import PLATFORM/C/LIB/platform-macros.lm; | ||
import PLATFORM/C/LIB/blob.lm; | ||
import PLATFORM/C/LIB/primitives.lm; | ||
import PLATFORM/C/LIB/primitives.lsts; | ||
import PLATFORM/C/LIB/field-accessors.lsts; | ||
import PLATFORM/C/LIB/sized.lm; | ||
import PLATFORM/C/LIB/bool.lsts; | ||
import PLATFORM/C/LIB/u8.lm; | ||
import PLATFORM/C/LIB/i8.lm; | ||
import PLATFORM/C/LIB/u16.lm; | ||
import PLATFORM/C/LIB/i16.lm; | ||
import PLATFORM/C/LIB/u32.lm; | ||
import PLATFORM/C/LIB/i32.lm; | ||
import PLATFORM/C/LIB/u64.lm; | ||
import PLATFORM/C/LIB/i64.lm; | ||
import PLATFORM/C/LIB/f64.lm; | ||
import PLATFORM/C/LIB/u8.lsts; | ||
import PLATFORM/C/LIB/i8.lsts; | ||
import PLATFORM/C/LIB/u16.lsts; | ||
import PLATFORM/C/LIB/i16.lsts; | ||
import PLATFORM/C/LIB/u32.lsts; | ||
import PLATFORM/C/LIB/i32.lsts; | ||
import PLATFORM/C/LIB/u64.lsts; | ||
import PLATFORM/C/LIB/i64.lsts; | ||
import PLATFORM/C/LIB/f64.lsts; | ||
import PLATFORM/C/LIB/usize.lsts; | ||
import PLATFORM/C/LIB/buffer.lm; | ||
import PLATFORM/C/LIB/string.lm; | ||
import PLATFORM/C/LIB/string.lsts; | ||
import PLATFORM/C/LIB/smart-string.lm; | ||
import PLATFORM/C/LIB/smart-string.lsts; | ||
import PLATFORM/C/LIB/s.lsts; | ||
import PLATFORM/C/LIB/tuple.lsts; | ||
import PLATFORM/C/LIB/list.lm; | ||
import PLATFORM/C/LIB/list.lsts; | ||
import PLATFORM/C/LIB/maybe.lsts; | ||
import PLATFORM/C/LIB/vector.lsts; | ||
import PLATFORM/C/LIB/hashtable.lm; | ||
import PLATFORM/C/LIB/hashtable.lsts; | ||
import PLATFORM/C/LIB/array.lm; | ||
import PLATFORM/C/LIB/array.lsts; | ||
import PLATFORM/C/LIB/io.lm; | ||
import PLATFORM/C/LIB/io.lsts; | ||
import PLATFORM/C/LIB/regex.lm; | ||
import PLATFORM/C/LIB/cmp.lsts; | ||
import PLATFORM/C/LIB/print.lsts; | ||
import PLATFORM/C/LIB/umbra.lsts; | ||
import LIB/default.lsts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
import PLATFORM/C/LIB/common-macros.lm; | ||
import PLATFORM/C/LIB/platform-macros.lm; | ||
import PLATFORM/C/LIB/blob.lm; | ||
import PLATFORM/C/LIB/primitives.lm; | ||
import PLATFORM/C/LIB/primitives.lsts; | ||
import PLATFORM/C/LIB/field-accessors.lsts; | ||
import PLATFORM/C/LIB/sized.lm; | ||
import PLATFORM/C/LIB/bool.lsts; | ||
import PLATFORM/C/LIB/u8.lm; | ||
import PLATFORM/C/LIB/i8.lm; | ||
import PLATFORM/C/LIB/u16.lm; | ||
import PLATFORM/C/LIB/i16.lm; | ||
import PLATFORM/C/LIB/u32.lm; | ||
import PLATFORM/C/LIB/i32.lm; | ||
import PLATFORM/C/LIB/u64.lm; | ||
import PLATFORM/C/LIB/i64.lm; | ||
import PLATFORM/C/LIB/f64.lm; | ||
import PLATFORM/C/LIB/u8.lsts; | ||
import PLATFORM/C/LIB/i8.lsts; | ||
import PLATFORM/C/LIB/u16.lsts; | ||
import PLATFORM/C/LIB/i16.lsts; | ||
import PLATFORM/C/LIB/u32.lsts; | ||
import PLATFORM/C/LIB/i32.lsts; | ||
import PLATFORM/C/LIB/u64.lsts; | ||
import PLATFORM/C/LIB/i64.lsts; | ||
import PLATFORM/C/LIB/f64.lsts; | ||
import PLATFORM/C/LIB/usize.lsts; | ||
import PLATFORM/C/LIB/buffer.lm; | ||
import PLATFORM/C/LIB/string.lm; | ||
import PLATFORM/C/LIB/string.lsts; | ||
import PLATFORM/C/LIB/smart-string.lm; | ||
import PLATFORM/C/LIB/smart-string.lsts; | ||
import PLATFORM/C/LIB/s.lsts; | ||
import PLATFORM/C/LIB/tuple.lsts; | ||
import PLATFORM/C/LIB/list.lm; | ||
import PLATFORM/C/LIB/list.lsts; | ||
import PLATFORM/C/LIB/maybe.lsts; | ||
import PLATFORM/C/LIB/vector.lsts; | ||
import PLATFORM/C/LIB/hashtable.lm; | ||
import PLATFORM/C/LIB/hashtable.lsts; | ||
import PLATFORM/C/LIB/array.lm; | ||
import PLATFORM/C/LIB/array.lsts; | ||
import PLATFORM/C/LIB/io.lm; | ||
import PLATFORM/C/LIB/io.lsts; | ||
import PLATFORM/C/LIB/regex.lm; | ||
import PLATFORM/C/LIB/cmp.lsts; | ||
import PLATFORM/C/LIB/print.lsts; | ||
import PLATFORM/C/LIB/umbra.lsts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
import SRC/unit-drivers.lsts; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
assert( LessThan == LessThan ); | ||
assert( LessThan != Equal ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
assert( SNil == SNil ); | ||
assert( SNil != SAtom{ c"A" } ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
# UmbraShort | ||
let a = to-umbra("Hey"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
let t2 = Tuple{ 1, 2 }; | ||
print(t2); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
(print 1_u64)(print '\n_s) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
f := λ: Hook+HookPriority<-1>(: a U64). (: ( | ||
a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type XY X | (Y( U64 )); | ||
type XYZ (Z( XY , U64 )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type XY X | (Y( U64 )); | ||
type XYZ (Z( XY , U64 )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
(let c (cell( 1_u64 ))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
(let s (SAtom 'ABC_s)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
g0 := 0_u64; | ||
g1 := 1_u64; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
macro ('m1 a) (print a); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
import LIB/dev-u64.lm; | ||
|
||
main := λ.(: ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
let main(): Nil = ( | ||
print(1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A (A( U64 , U64 )) | (B( U64 , U64 )); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A (A( B , B )); | ||
type B (B( U64 , U64 )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
f := λ(: x U64). 1_u64; | ||
f := λ(: x U64+Nonce1+Nonce2). 2_u64; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
fa := λ. (: (print 'A_s) Nil); | ||
fb := λ. (: (print 'B_s) Nil); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A = A { x: U64 }; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
import math.h; | ||
import stdlib.h; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A (A( U64 )); | ||
type B (B( A )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A (AA( U64 )); | ||
type B (B( List<A> )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import $"LIB/default.lm"; | ||
import $"LIB/default.lsts"; | ||
|
||
let $"***"(x: I64, y: I64): I64 = (x + y) - 2_i64 * y; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
(let region1 (malloc 11_u64)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
main := λ. (: ( | ||
() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
let a(x: U8): Nil = print(x); | ||
let b(x: I8): Nil = print(x); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type XYZ<x,y> (XY( x , y )) | X | (Y( x )); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
f := λ(: x x). (: ( | ||
(+( x x )) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
let fp = fopen(c"input-file.txt", c"r"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type XY X | (Y( U64 )); | ||
type XYZ (Z( XY , U64 )); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A = A { x: U64 }; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
import LIB/default.lm; | ||
import LIB/default.lsts; | ||
|
||
type A (ACons( Rc<A> , Rc<A> )) | (AAtom( String )); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.