Skip to content

Commit

Permalink
Merge pull request #1140 from andrew-johnson-4/lm-to-lsts-fjo2
Browse files Browse the repository at this point in the history
Lm to lsts fjo2
  • Loading branch information
andrew-johnson-4 authored Jan 22, 2025
2 parents 2eb45ac + e9f7b4e commit f4cd772
Show file tree
Hide file tree
Showing 8 changed files with 21,463 additions and 22,018 deletions.
43,411 changes: 21,460 additions & 21,951 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.36"
version = "1.20.37"
authors = ["Andrew <[email protected]>"]
license = "MIT"
description = "Typed Macro Assembler (backed by Coq proofs-of-correctness)"
Expand Down
6 changes: 2 additions & 4 deletions SRC/has-infinite.lm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ has-infinite := λ(: base-type Type)(: tag String)(: arity U64)(: tt List<Type>)
()
( LEOF () )
( (LCons( p1 ts )) (
(if (is-parameter-flat( tag arity pi )) (
(if (==( base-type p1 )) (
(set return 1_u64)
) ())
(if (==( base-type p1 )) (
(set return 1_u64)
) ())
(set return (max(
(has-infinite( base-type tag arity ts (+( pi 1_u64 )) ))
Expand Down
3 changes: 0 additions & 3 deletions SRC/index-types.lm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import SRC/infer-expr.lm;
import SRC/phi-transition.lsts;
import SRC/phi-merge.lsts;
import SRC/alias.lm;
import SRC/is-parameter-flat.lm;
import SRC/is-special.lm;
import SRC/is-lone-tag.lm;
import SRC/global-is-seen.lm;
Expand All @@ -20,7 +19,6 @@ import SRC/index-of-tag.lm;
import SRC/size-of-class.lm;
import SRC/is-only-child.lsts;
import SRC/is-sized-array.lsts;
import SRC/type-complex-fields.lm;
import SRC/get-vararg-inner.lm;
import SRC/maybe-specialize.lm;
import SRC/maybe-local-variable.lm;
Expand Down Expand Up @@ -75,7 +73,6 @@ import SRC/typeof-var-raw.lm;

import SRC/typecheck.lm;
import SRC/specialize.lm;
import SRC/mark-constructor-flat-parameters.lm;
import SRC/infer-type-constructor.lm;
import SRC/infer-global-context.lm;
import SRC/assert-well-typed.lm;
Expand Down
2 changes: 0 additions & 2 deletions SRC/infer-type-constructor.lm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ infer-type-constructor := λ(: base-type Type)(: body AST). (: (
( (App( (Lit( tag _ )) args )) (
(let atype (type-of-s-with-fields( base-type tag args 1_u64 )))
(add-concrete-type-instance atype)
(mark-constructor-flat-parameters( base-type atype ))
(if (has-forward( atype )) (
(print 'Size\sOf\sType\sCannot\sBe\sDetermined\sDue\sTo\sForward\sReference:\s_s)
(print tag)(print '\n_s)
Expand All @@ -43,7 +42,6 @@ infer-type-constructor := λ(: base-type Type)(: body AST). (: (
)))
(add-quick-prop( (t1(+( 'Tag::_s tag ))) base-type (t2( 'CaseNumber_s (t1(to-string(index-of-tag tag))) )) ))
(add-quick-prop( (t1(+( 'Tag::_s tag ))) (t3( 'Array_s base-type TAny )) (t2( 'CaseNumber_s (t1(to-string(index-of-tag tag))) )) ))
(set-type-fields( base-type atype ))
(index-fields-of-tag( tag base-type base-type atype ))
(set global-type-context (.bind( global-type-context tag (t3( 'Arrow_s atype rtype )) body )))
))
Expand Down
12 changes: 0 additions & 12 deletions SRC/is-parameter-flat.lm

This file was deleted.

30 changes: 0 additions & 30 deletions SRC/mark-constructor-flat-parameters.lm

This file was deleted.

15 changes: 0 additions & 15 deletions SRC/type-complex-fields.lm

This file was deleted.

0 comments on commit f4cd772

Please sign in to comment.