renamings

dev-srcloc
Matthew Butterick 8 years ago
parent 6259bbdd0c
commit d031040262

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
1 PRINT TAB(32);"3D PLOT" 1 PRINT TAB(32);"3D PLOT"
2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 PRINT TAB(26);"ACEY DUCEY CARD GAME" 10 PRINT TAB(26);"ACEY DUCEY CARD GAME"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
21 PRINT 21 PRINT

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 PRINT TAB(28);"AMAZING PROGRAM" 10 PRINT TAB(28);"AMAZING PROGRAM"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 PRINT TAB(33);"BOUNCE" 10 PRINT TAB(33);"BOUNCE"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
2 PRINT TAB(33);"CHANGE" 2 PRINT TAB(33);"CHANGE"
4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
5 PRINT:PRINT:PRINT 5 PRINT:PRINT:PRINT

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
3 print TAB(33);"Chemist" 3 print TAB(33);"Chemist"
6 print TAB(15);"Creative Computing | Morristown, New Jersey" 6 print TAB(15);"Creative Computing | Morristown, New Jersey"

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
5 A=5 5 A=5
10 DIM A(A) 10 DIM A(A)

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 for A=1 to 3 10 for A=1 to 3
20 print A 20 print A
21 for B=5 to 8 21 for B=5 to 8

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 GOSUB 50 10 GOSUB 50
15 PRINT "2 of 3" 15 PRINT "2 of 3"
17 GOSUB 30 17 GOSUB 30

@ -0,0 +1,4 @@
#lang br/quicklang
(module reader br
(require "reader.rkt")
(provide read-syntax))

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
300 B=INT(RND(3*2)) 300 B=INT(RND(3*2))

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 X = 3 10 X = 3
20 on X gosub 210, 220, 230 20 on X gosub 210, 220, 230
21 print "yay" 21 print "yay"

@ -2,5 +2,5 @@
(require br/reader-utils "parser.rkt" "tokenizer.rkt") (require br/reader-utils "parser.rkt" "tokenizer.rkt")
(define-read-and-read-syntax (source-path input-port) (define-read-and-read-syntax (source-path input-port)
#`(module bf-mod br/demo/basic/expander #`(module bf-mod basic-demo/expander
#,(parse source-path (tokenize input-port)))) #,(parse source-path (tokenize input-port))))

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
10 PRINT TAB(30);"SINE WAVE" 10 PRINT TAB(30);"SINE WAVE"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"

@ -1,4 +1,4 @@
#lang br/demo/basic #lang basic-demo
5 print 30; "foo" 5 print 30; "foo"
10 PRINT TAB(10);"*"; 10 PRINT TAB(10);"*";

@ -1,4 +0,0 @@
#lang br
(module reader br
(require "basic/reader.rkt")
(provide (all-from-out "basic/reader.rkt")))

@ -1,4 +0,0 @@
#lang br
(module reader br
(require (submod "bf/main.rkt" reader))
(provide read-syntax))

@ -3,7 +3,7 @@
(define (read-syntax path port) (define (read-syntax path port)
(define args (port->lines port)) (define args (port->lines port))
(define arg-datums (filter-not void? (format-datums '~a args))) (define arg-datums (filter-not void? (format-datums '~a args)))
(define module-datum `(module stacker-mod br/demo/funstacker (define module-datum `(module stacker-mod funstacker-demo
(nestify null ,@arg-datums))) (nestify null ,@arg-datums)))
(datum->syntax #f module-datum)) (datum->syntax #f module-datum))
(provide read-syntax) (provide read-syntax)

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP And { CHIP And {
IN a, b; IN a, b;

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP Fanout { CHIP Fanout {
IN in; IN in;

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP HalfAdder { CHIP HalfAdder {
IN a, b; // 1-bit inputs IN a, b; // 1-bit inputs

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press. // by Nisan and Schocken, MIT Press.

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
/* nand */ /* nand */

@ -1,4 +1,4 @@
#lang s-exp br/demo/hdl/expander #lang s-exp hdl-demo/expander
#| #|
CHIP Not { CHIP Not {

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP Not { CHIP Not {
IN in; IN in;

@ -1,4 +1,4 @@
#lang s-exp br/demo/hdl-tst/expander #lang s-exp hdl-tst-demo/expander
#| #|
@ -15,7 +15,7 @@ output;
|# |#
(require br/demo/hdl-tst/hdlprint rackunit racket/file) (require hdl-demo-tst/hdlprint rackunit racket/file)
(require "Not.hdl.rkt") ; load Not.hdl, (require "Not.hdl.rkt") ; load Not.hdl,
(define of (open-output-file "Not.out" #:mode 'text #:exists 'replace)) ; output-file Not.out, (define of (open-output-file "Not.out" #:mode 'text #:exists 'replace)) ; output-file Not.out,
(define (output in out) ; output-list in%B3.1.3 out%B3.1.3; (define (output in out) ; output-list in%B3.1.3 out%B3.1.3;

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
load Not.hdl, load Not.hdl,
output-file Not.out, output-file Not.out,

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP Or { CHIP Or {
IN a, b; IN a, b;

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press. // by Nisan and Schocken, MIT Press.

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
CHIP And { CHIP And {
IN a, b; IN a, b;

@ -1,4 +1,4 @@
#lang br/demo/hdl #lang hdl-demo
/* Xor (exclusive or) gate: /* Xor (exclusive or) gate:
If a<>b out=1 else out=0. */ If a<>b out=1 else out=0. */

@ -1,4 +1,4 @@
#lang br/demo/hdl-tst #lang hdl-tst-demo
// This file is part of www.nand2tetris.org // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems" // and the book "The Elements of Computing Systems"

@ -0,0 +1,4 @@
#lang br/quicklang
(module reader br
(require "reader.rkt")
(provide read-syntax))

@ -2,5 +2,5 @@
(require br/reader-utils "parser.rkt" "tokenizer.rkt") (require br/reader-utils "parser.rkt" "tokenizer.rkt")
(define-read-and-read-syntax (source-path input-port) (define-read-and-read-syntax (source-path input-port)
#`(module hdl-mod br/demo/hdl/expander #`(module hdl-mod hdl-demo/expander
#,(parse source-path (tokenize input-port)))) #,(parse source-path (tokenize input-port))))

@ -1,7 +1,7 @@
#lang br #lang br
(module reader br (module reader br
(require br/reader-utils "hdl-tst/parser.rkt" "hdl-tst/tokenizer.rkt") (require br/reader-utils "parser.rkt" "tokenizer.rkt")
(define-read-and-read-syntax (source-path input-port) (define-read-and-read-syntax (source-path input-port)
#`(module hdl-mod br/demo/hdl-tst/expander #`(module hdl-mod hdl-tst-demo/expander
#,(parse source-path (tokenize input-port))))) #,(parse source-path (tokenize input-port)))))

@ -1,5 +0,0 @@
#lang br
(module+ reader
(require "hdl/reader.rkt")
(provide (all-from-out "hdl/reader.rkt")))

@ -1,4 +0,0 @@
#lang br/quicklang
(module reader br/quicklang
(require (submod "jsonic-2/main.rkt" reader))
(provide (all-from-out (submod "jsonic-2/main.rkt" reader))))

@ -1,4 +0,0 @@
#lang br/quicklang
(module reader br/quicklang
(require (submod "jsonic/main.rkt" reader))
(provide (all-from-out (submod "jsonic/main.rkt" reader))))

@ -21,9 +21,9 @@
;; ============================================================ ;; ============================================================
;; Overall module: ;; Overall module:
(define-macro (module-begin _lines ...) (define-macro (module-begin LINES ...)
#'(#%module-begin #'(#%module-begin
_lines ... LINES ...
(provide do-verb do-place) (provide do-verb do-place)
(module+ main (module+ main

@ -2,5 +2,5 @@
(require br/reader-utils "parser.rkt" "tokenizer.rkt") (require br/reader-utils "parser.rkt" "tokenizer.rkt")
(define-read-and-read-syntax (source-path input-port) (define-read-and-read-syntax (source-path input-port)
#`(module world br/demo/txtadv/expander #`(module world txtadv-demo/expander
#,(parse source-path (tokenize input-port)))) #,(parse source-path (tokenize input-port))))

@ -1,5 +0,0 @@
#lang br
(module reader br
(require "txtadv/reader0.rkt")
(provide (all-from-out "txtadv/reader0.rkt")))

@ -1,4 +0,0 @@
#lang br/quicklang
(module reader br/quicklang
(require (submod "wires/main.rkt" reader))
(provide (all-from-out (submod "wires/main.rkt" reader))))
Loading…
Cancel
Save