Skip to content

Commit

Permalink
Merge pull request #1199 from andrew-johnson-4/lm-to-lsts-fadwpw
Browse files Browse the repository at this point in the history
Lm to lsts fadwpw
  • Loading branch information
andrew-johnson-4 authored Jan 29, 2025
2 parents e27d35e + 8e8df6e commit 3b5c9a4
Show file tree
Hide file tree
Showing 17 changed files with 22,242 additions and 22,797 deletions.
44,908 changes: 22,227 additions & 22,681 deletions BOOTSTRAP/cli.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lambda_mountain"
version = "1.20.54"
version = "1.20.55"
authors = ["Andrew <[email protected]>"]
license = "MIT"
description = "Typed Macro Assembler (backed by Coq proofs-of-correctness)"
Expand Down
2 changes: 0 additions & 2 deletions PLUGINS/BACKEND/C/compile-stack-call.lm
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ compile-stack-call := λ(: ctx FContext)(: f Fragment)(: function-name String)(:

(set ictx (.set( ictx 'function-id_s (SAtom function-id) )))
(set ictx (.set( ictx 'function-name_s (SAtom function-name) )))
(set ictx (.set( ictx 'used_s (SAtom(to-string used)) )))
(set.type( ictx (t1( 'ImplicitContext_s )) ))
(set ctx (.bind( ctx 'ictx_s (t1 'ImplicitContext_s) ictx )))

(let args-tt (.type push-args))
Expand Down
1 change: 1 addition & 0 deletions PLUGINS/FRONTEND/LM/index-index.lm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ import PLUGINS/FRONTEND/LM/parse-type.lm;
import PLUGINS/FRONTEND/LM/parse.lm;
import PLUGINS/FRONTEND/LM/lm-is-variable.lm;
import PLUGINS/FRONTEND/LM/lm-type-of-s.lm;
import PLUGINS/FRONTEND/LM/remove-parens.lm;

File renamed without changes.
12 changes: 0 additions & 12 deletions SRC/cons-arity.lm

This file was deleted.

10 changes: 0 additions & 10 deletions SRC/cons-head.lm

This file was deleted.

10 changes: 0 additions & 10 deletions SRC/cons-tail.lm
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@

cons-tail := λ(: tt Type). (: (
(let r TAny)
(match tt (
()
( (TGround( 'Cons_s (LCons( tl (LCons( hd LEOF )) )) )) (set r tl) )
( _ () )
))
r
) Type);

cons-tail-or-self := λ(: tt Type). (: (
(match tt (
()
Expand Down
2 changes: 0 additions & 2 deletions SRC/index-ast.lm
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

import SRC/plus.lm;
import SRC/print.lm;
import SRC/var-name-if-var.lm;
import SRC/remove-parens.lm;
2 changes: 0 additions & 2 deletions SRC/index-types.lm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import SRC/has-forward.lm;
import SRC/type-of-s-with-fields.lm;

import SRC/typeof-lhs.lm;
import SRC/cons-head.lm;
import SRC/cons-tail.lm;
import SRC/apply.lm;
import SRC/apply.lsts;
Expand All @@ -45,7 +44,6 @@ import SRC/try-specialize.lm;

import SRC/unify-hint.lm;
import SRC/infer-type-definition.lm;
import SRC/cons-arity.lm;
import SRC/typeof-var.lm;
import SRC/typeof-var-raw.lm;

Expand Down
2 changes: 0 additions & 2 deletions SRC/index-utility.lm
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
import SRC/index-definitions.lm;

import SRC/error-formatting.lm;
import SRC/to-string.lm;
import SRC/is-equal.lm;
25 changes: 0 additions & 25 deletions SRC/is-equal.lm

This file was deleted.

11 changes: 11 additions & 0 deletions SRC/plus.lsts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

let $"+"(l: AST, r: AST): AST = (
match r {
ASTEOF{} => ();
Seq{left=left,right=right} => (
l = l + left;
l = l + right;
);
re => l = Seq{close(l), close(re)};
}; l
);
31 changes: 0 additions & 31 deletions SRC/take-one-expr.lm

This file was deleted.

18 changes: 0 additions & 18 deletions SRC/to-string.lm

This file was deleted.

2 changes: 1 addition & 1 deletion SRC/type-cmp.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let cmp(left: Type, right: Type): Ord = (
});
TAnd{ left-left=left, left-right=right } => (match right {
TAnd{ right-left=left, right-right=right } => (
cmp(left-left,right-left) && cmp(right-left, right-right);
cmp(left-left,right-left) && cmp(left-right, right-right);
);
_ => cmp($".0"(left), $".0"(right));
});
Expand Down
1 change: 1 addition & 0 deletions SRC/unit-ast.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ import SRC/is-seq.lsts;
import SRC/non-zero.lsts;
import SRC/uuid.lsts;
import SRC/smart-token-location.lsts;
import SRC/plus.lsts;

0 comments on commit 3b5c9a4

Please sign in to comment.