Skip to content

Commit

Permalink
Put compiler files in their own directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
stamourv committed Jun 20, 2011
1 parent ce884b1 commit f2112b7
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions picobit.rkt → compiler/picobit.rkt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#lang racket

(require (only-in unstable/port read-all))
(require (only-in unstable/port read-all)
racket/runtime-path)
(require "utilities.rkt"
"ast.rkt"
"env.rkt"
Expand All @@ -23,9 +24,12 @@
e))
exprs))

(define-runtime-path compiler-dir ".")

(define (parse-file filename)
(let* ((library
(with-input-from-file "library.scm" read-all))
(with-input-from-file (build-path compiler-dir "library.scm")
read-all))
(toplevel-exprs
(expand-includes
(append library
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion picobit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

racket picobit.rkt $@
racket compiler/picobit.rkt $@

0 comments on commit f2112b7

Please sign in to comment.