From ef882b8dffa5bcb891e37151d11dc181106675a5 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sat, 16 Apr 2016 14:34:10 -0700 Subject: [PATCH] move to example subdir --- beautiful-racket/br/basic.rkt | 4 ---- beautiful-racket/br/example/basic.rkt | 4 ++++ beautiful-racket/br/{ => example}/basic/expander.rkt | 0 beautiful-racket/br/{ => example}/basic/parser.rkt | 0 beautiful-racket/br/{ => example}/basic/reader.rkt | 4 ++-- beautiful-racket/br/{ => example}/basic/test.rkt | 2 +- beautiful-racket/br/{ => example}/basic/tokenizer.rkt | 0 beautiful-racket/br/{ => example}/bf.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-atsign-sexp.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-atsign.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-expander.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-factorial.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-hello-world.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-parser.rkt | 0 beautiful-racket/br/{ => example}/bf/bf-reader.rkt | 2 +- beautiful-racket/br/{ => example}/bf/info.rkt | 0 beautiful-racket/br/{ => example}/bf/main.rkt | 0 beautiful-racket/br/{ => example}/bf/test-reader.rkt | 0 beautiful-racket/br/{ => example}/bf/test-tokenizer.rkt | 0 beautiful-racket/info.rkt | 3 +-- 20 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 beautiful-racket/br/basic.rkt create mode 100644 beautiful-racket/br/example/basic.rkt rename beautiful-racket/br/{ => example}/basic/expander.rkt (100%) rename beautiful-racket/br/{ => example}/basic/parser.rkt (100%) rename beautiful-racket/br/{ => example}/basic/reader.rkt (57%) rename beautiful-racket/br/{ => example}/basic/test.rkt (72%) rename beautiful-racket/br/{ => example}/basic/tokenizer.rkt (100%) rename beautiful-racket/br/{ => example}/bf.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-atsign-sexp.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-atsign.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-expander.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-factorial.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-hello-world.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-parser.rkt (100%) rename beautiful-racket/br/{ => example}/bf/bf-reader.rkt (90%) rename beautiful-racket/br/{ => example}/bf/info.rkt (100%) rename beautiful-racket/br/{ => example}/bf/main.rkt (100%) rename beautiful-racket/br/{ => example}/bf/test-reader.rkt (100%) rename beautiful-racket/br/{ => example}/bf/test-tokenizer.rkt (100%) diff --git a/beautiful-racket/br/basic.rkt b/beautiful-racket/br/basic.rkt deleted file mode 100644 index f7c4a25..0000000 --- a/beautiful-racket/br/basic.rkt +++ /dev/null @@ -1,4 +0,0 @@ -#lang br -(module reader br - (require br/basic/reader) - (provide (all-from-out br/basic/reader))) diff --git a/beautiful-racket/br/example/basic.rkt b/beautiful-racket/br/example/basic.rkt new file mode 100644 index 0000000..d1fcc19 --- /dev/null +++ b/beautiful-racket/br/example/basic.rkt @@ -0,0 +1,4 @@ +#lang br +(module reader br + (require "basic/reader.rkt") + (provide (all-from-out "basic/reader.rkt"))) diff --git a/beautiful-racket/br/basic/expander.rkt b/beautiful-racket/br/example/basic/expander.rkt similarity index 100% rename from beautiful-racket/br/basic/expander.rkt rename to beautiful-racket/br/example/basic/expander.rkt diff --git a/beautiful-racket/br/basic/parser.rkt b/beautiful-racket/br/example/basic/parser.rkt similarity index 100% rename from beautiful-racket/br/basic/parser.rkt rename to beautiful-racket/br/example/basic/parser.rkt diff --git a/beautiful-racket/br/basic/reader.rkt b/beautiful-racket/br/example/basic/reader.rkt similarity index 57% rename from beautiful-racket/br/basic/reader.rkt rename to beautiful-racket/br/example/basic/reader.rkt index f4e9c07..e183ca1 100644 --- a/beautiful-racket/br/basic/reader.rkt +++ b/beautiful-racket/br/example/basic/reader.rkt @@ -1,7 +1,7 @@ #lang br -(require br/reader-utils br/basic/parser br/basic/tokenizer) +(require br/reader-utils "parser.rkt" "tokenizer.rkt") (define-read-and-read-syntax (source-path input-port) (strip-context - #`(module bf-mod br/basic/expander + #`(module bf-mod br/example/basic/expander #,(parse source-path (tokenize input-port))))) diff --git a/beautiful-racket/br/basic/test.rkt b/beautiful-racket/br/example/basic/test.rkt similarity index 72% rename from beautiful-racket/br/basic/test.rkt rename to beautiful-racket/br/example/basic/test.rkt index d634193..2e1b2b4 100644 --- a/beautiful-racket/br/basic/test.rkt +++ b/beautiful-racket/br/example/basic/test.rkt @@ -1,4 +1,4 @@ -#lang br/basic +#lang br/example/basic 10 PRINT "shit" 20 PRINT "bird" 25 PRINT "dork" diff --git a/beautiful-racket/br/basic/tokenizer.rkt b/beautiful-racket/br/example/basic/tokenizer.rkt similarity index 100% rename from beautiful-racket/br/basic/tokenizer.rkt rename to beautiful-racket/br/example/basic/tokenizer.rkt diff --git a/beautiful-racket/br/bf.rkt b/beautiful-racket/br/example/bf.rkt similarity index 100% rename from beautiful-racket/br/bf.rkt rename to beautiful-racket/br/example/bf.rkt diff --git a/beautiful-racket/br/bf/bf-atsign-sexp.rkt b/beautiful-racket/br/example/bf/bf-atsign-sexp.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-atsign-sexp.rkt rename to beautiful-racket/br/example/bf/bf-atsign-sexp.rkt diff --git a/beautiful-racket/br/bf/bf-atsign.rkt b/beautiful-racket/br/example/bf/bf-atsign.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-atsign.rkt rename to beautiful-racket/br/example/bf/bf-atsign.rkt diff --git a/beautiful-racket/br/bf/bf-expander.rkt b/beautiful-racket/br/example/bf/bf-expander.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-expander.rkt rename to beautiful-racket/br/example/bf/bf-expander.rkt diff --git a/beautiful-racket/br/bf/bf-factorial.rkt b/beautiful-racket/br/example/bf/bf-factorial.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-factorial.rkt rename to beautiful-racket/br/example/bf/bf-factorial.rkt diff --git a/beautiful-racket/br/bf/bf-hello-world.rkt b/beautiful-racket/br/example/bf/bf-hello-world.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-hello-world.rkt rename to beautiful-racket/br/example/bf/bf-hello-world.rkt diff --git a/beautiful-racket/br/bf/bf-parser.rkt b/beautiful-racket/br/example/bf/bf-parser.rkt similarity index 100% rename from beautiful-racket/br/bf/bf-parser.rkt rename to beautiful-racket/br/example/bf/bf-parser.rkt diff --git a/beautiful-racket/br/bf/bf-reader.rkt b/beautiful-racket/br/example/bf/bf-reader.rkt similarity index 90% rename from beautiful-racket/br/bf/bf-reader.rkt rename to beautiful-racket/br/example/bf/bf-reader.rkt index 7e46348..e1edf3f 100644 --- a/beautiful-racket/br/bf/bf-reader.rkt +++ b/beautiful-racket/br/example/bf/bf-reader.rkt @@ -16,6 +16,6 @@ (define parse-tree (parse source-path (tokenize input-port))) (strip-context (inject-syntax ([#'PARSE-TREE parse-tree]) - #'(module bf-mod br/bf/bf-expander + #'(module bf-mod br/example/bf/bf-expander PARSE-TREE)))) (provide read-syntax) diff --git a/beautiful-racket/br/bf/info.rkt b/beautiful-racket/br/example/bf/info.rkt similarity index 100% rename from beautiful-racket/br/bf/info.rkt rename to beautiful-racket/br/example/bf/info.rkt diff --git a/beautiful-racket/br/bf/main.rkt b/beautiful-racket/br/example/bf/main.rkt similarity index 100% rename from beautiful-racket/br/bf/main.rkt rename to beautiful-racket/br/example/bf/main.rkt diff --git a/beautiful-racket/br/bf/test-reader.rkt b/beautiful-racket/br/example/bf/test-reader.rkt similarity index 100% rename from beautiful-racket/br/bf/test-reader.rkt rename to beautiful-racket/br/example/bf/test-reader.rkt diff --git a/beautiful-racket/br/bf/test-tokenizer.rkt b/beautiful-racket/br/example/bf/test-tokenizer.rkt similarity index 100% rename from beautiful-racket/br/bf/test-tokenizer.rkt rename to beautiful-racket/br/example/bf/test-tokenizer.rkt diff --git a/beautiful-racket/info.rkt b/beautiful-racket/info.rkt index 66fb7b9..66d4c55 100644 --- a/beautiful-racket/info.rkt +++ b/beautiful-racket/info.rkt @@ -5,5 +5,4 @@ (define deps '("base" "sugar" "beautiful-racket-lib" "rackunit-lib" "ragg" "parser-tools-lib")) (define build-deps '("racket-doc")) -(define test-omit-paths '("br/bf" "br/bf.rkt" - "br/basic" "br/basic.rkt")) \ No newline at end of file +(define test-omit-paths '("br/example")) \ No newline at end of file