Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit provides. #26

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iniquity-gc/compile-ops.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-op0 compile-op1 compile-op2 compile-op3 pad-stack unpad-stack allocate)
(require "ast.rkt" "types.rkt" a86/ast)

(define rax 'rax) ; return
Expand Down
2 changes: 1 addition & 1 deletion iniquity-gc/compile.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile compile-e)
(require "ast.rkt" "types.rkt" "compile-ops.rkt" a86/ast)

;; Registers used
Expand Down
5 changes: 4 additions & 1 deletion mountebank/compile-define.rkt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#lang racket
(provide (all-defined-out))
(provide compile-define compile-defines-values define-ids compile-defines)
(require "ast.rkt"
"types.rkt"
"fv.rkt"
"utils.rkt"
"compile-expr.rkt"
a86/ast)

(define rax 'rax)
(define rbx 'rbx)

;; [Listof Defn] -> [Listof Id]
(define (define-ids ds)
(match ds
Expand Down
5 changes: 4 additions & 1 deletion mountebank/compile-expr.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-e compile-lambda-defines compile-lambda-define free-vars-to-heap)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand All @@ -14,6 +14,9 @@
(define rbx 'rbx) ; heap
(define rsp 'rsp) ; stack
(define rdi 'rdi) ; arg
(define r8 'r8)
(define r9 'r9)
(define rsi 'rsi)

;; Expr CEnv Bool -> Asm
(define (compile-e e c t?)
Expand Down
2 changes: 1 addition & 1 deletion mountebank/compile-ops.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-op0 compile-op1 compile-op2 compile-op3 pad-stack unpad-stack assert-proc)
(require "ast.rkt" "types.rkt" "utils.rkt" a86/ast)

(define rax 'rax) ; return
Expand Down
2 changes: 1 addition & 1 deletion mountebank/compile.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile compile-e)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand Down
5 changes: 4 additions & 1 deletion mug/compile-define.rkt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#lang racket
(provide (all-defined-out))
(provide compile-define compile-defines-values define-ids compile-defines)
(require "ast.rkt"
"types.rkt"
"fv.rkt"
"utils.rkt"
"compile-expr.rkt"
a86/ast)

(define rax 'rax)
(define rbx 'rbx)

;; [Listof Defn] -> [Listof Id]
(define (define-ids ds)
(match ds
Expand Down
5 changes: 4 additions & 1 deletion mug/compile-expr.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-e compile-lambda-defines compile-lambda-define free-vars-to-heap)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand All @@ -13,6 +13,9 @@
(define rbx 'rbx) ; heap
(define rsp 'rsp) ; stack
(define rdi 'rdi) ; arg
(define r8 'r8)
(define r9 'r9)
(define rsi 'rsi)

;; Expr CEnv Bool -> Asm
(define (compile-e e c t?)
Expand Down
2 changes: 1 addition & 1 deletion mug/compile-ops.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-op0 compile-op1 compile-op2 compile-op3 pad-stack unpad-stack assert-proc)
(require "ast.rkt" "types.rkt" "utils.rkt" a86/ast)

(define rax 'rax) ; return
Expand Down
2 changes: 1 addition & 1 deletion mug/compile.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile compile-e)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand Down
5 changes: 4 additions & 1 deletion neerdowell/compile-define.rkt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#lang racket
(provide (all-defined-out))
(provide compile-define compile-defines-values define-ids compile-defines)
(require "ast.rkt"
"types.rkt"
"fv.rkt"
"utils.rkt"
"compile-expr.rkt"
a86/ast)

(define rax 'rax)
(define rbx 'rbx)

;; [Listof Defn] -> [Listof Id]
(define (define-ids ds)
(match ds
Expand Down
5 changes: 4 additions & 1 deletion neerdowell/compile-expr.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-e compile-lambda-define compile-lambda-defines free-vars-to-heap)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand All @@ -14,6 +14,9 @@
(define rbx 'rbx) ; heap
(define rsp 'rsp) ; stack
(define rdi 'rdi) ; arg
(define r8 'r8)
(define r9 'r9)
(define rsi 'rsi)

;; Expr CEnv Bool -> Asm
(define (compile-e e c t?)
Expand Down
2 changes: 1 addition & 1 deletion neerdowell/compile-ops.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile-op pad-stack unpad-stack assert-proc compile-make-struct)
(require "ast.rkt" "types.rkt" "utils.rkt" a86/ast)

(define rax 'rax) ; return
Expand Down
2 changes: 1 addition & 1 deletion neerdowell/compile.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket
(provide (all-defined-out))
(provide compile compile-e)
(require "ast.rkt"
"types.rkt"
"lambdas.rkt"
Expand Down