simulator in separate directory

This commit is contained in:
Danny Yoo 2011-05-13 14:03:00 -04:00
parent 1aeb9c57fb
commit 2463cb90e6
10 changed files with 15 additions and 37 deletions

1
dead/README Normal file
View File

@ -0,0 +1 @@
This holds file that may be dead code.

View File

@ -1,14 +0,0 @@
#lang racket
(require compiler/zo-parse)
(require (for-syntax racket/base))
(provide bytecode)
(define bytecode
(parameterize ([current-namespace (make-base-namespace)])
(let ([bc (compile (parameterize ([read-accept-reader #t])
(read (open-input-file "/home/dyoo/work/js-sicp-5-5/sample-small-file.rkt"))))]
[op (open-output-bytes)])
(write bc op)
(zo-parse (open-input-bytes (get-output-bytes op))))))

View File

@ -1,9 +0,0 @@
#lang racket/base
(provide f)
(define (f x)
(* x x))
;; infinite loop
(letrec ([g (lambda () (g))])
(g))

View File

@ -1,6 +1,6 @@
#lang racket/base
(require "simulator-structs.rkt"
"il-structs.rkt"
"../il-structs.rkt"
racket/math
racket/list
(for-syntax racket/base))

View File

@ -2,9 +2,9 @@
(provide (all-defined-out))
(require "il-structs.rkt"
"expression-structs.rkt"
"lexical-structs.rkt")
(require "../il-structs.rkt"
"../expression-structs.rkt"
"../lexical-structs.rkt")
(define-type PrimitiveValue (Rec PrimitiveValue (U String Number Symbol Boolean

View File

@ -5,13 +5,13 @@
;; For example, I'll need to be able to count the number of statements executed by an evaluation.
;; I also need to do things like count pushes and pops. Basically, low-level benchmarking.
(require "expression-structs.rkt"
"il-structs.rkt"
"lexical-structs.rkt"
"simulator-structs.rkt"
"bootstrapped-primitives.rkt"
"kernel-primitives.rkt"
"expression-structs.rkt"
(require "simulator-structs.rkt"
"../expression-structs.rkt"
"../il-structs.rkt"
"../lexical-structs.rkt"
"../bootstrapped-primitives.rkt"
"../kernel-primitives.rkt"
"../expression-structs.rkt"
racket/list
racket/match
(for-syntax racket/base))

View File

@ -1,8 +1,8 @@
#lang racket
(require "simulator.rkt"
"simulator-structs.rkt"
"simulator-helpers.rkt"
(require "simulator/simulator.rkt"
"simulator/simulator-structs.rkt"
"simulator/simulator-helpers.rkt"
"test-helpers.rkt")