From 59d837eadb8858a0953bd4b2a7bc2475fed2d459 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 17 Mar 2014 20:15:43 -0700 Subject: [PATCH] delete lang subdirectories --- lang/doclang-raw.rkt => doclang-raw.rkt | 0 lang/reader.rkt | 3 --- main-base.rkt | 2 +- main.rkt | 6 +++++- markdown.rkt | 6 +++++- markdown/lang/reader.rkt | 3 --- markup.rkt | 6 +++++- markup/lang/reader.rkt | 3 --- pagetree/lang/reader.rkt | 3 --- pre.rkt | 6 +++++- pre/lang/reader.rkt | 3 --- ptree.rkt | 6 +++++- lang/reader-base.rkt => reader-base.rkt | 0 render.rkt | 4 ++-- 14 files changed, 28 insertions(+), 23 deletions(-) rename lang/doclang-raw.rkt => doclang-raw.rkt (100%) delete mode 100644 lang/reader.rkt delete mode 100644 markdown/lang/reader.rkt delete mode 100644 markup/lang/reader.rkt delete mode 100644 pagetree/lang/reader.rkt delete mode 100644 pre/lang/reader.rkt rename lang/reader-base.rkt => reader-base.rkt (100%) diff --git a/lang/doclang-raw.rkt b/doclang-raw.rkt similarity index 100% rename from lang/doclang-raw.rkt rename to doclang-raw.rkt diff --git a/lang/reader.rkt b/lang/reader.rkt deleted file mode 100644 index c443f35..0000000 --- a/lang/reader.rkt +++ /dev/null @@ -1,3 +0,0 @@ -#lang racket/base -(require pollen/lang/reader-base) -(define+provide-reader-in-mode world:mode-auto) \ No newline at end of file diff --git a/main-base.rkt b/main-base.rkt index 397121f..adbfcf4 100644 --- a/main-base.rkt +++ b/main-base.rkt @@ -15,7 +15,7 @@ [(_ body-exprs (... ...)) (syntax-protect #'(#%module-begin - (module inner pollen/lang/doclang-raw + (module inner pollen/doclang-raw ;; doclang_raw is a version of scribble/doclang with the decoder disabled ;; first three lines are positional arguments for doclang-raw doc-raw ; id of export diff --git a/main.rkt b/main.rkt index 0db9baf..a2c66db 100644 --- a/main.rkt +++ b/main.rkt @@ -1,3 +1,7 @@ #lang racket/base (require pollen/main-base) -(define+provide-module-begin-in-mode world:mode-preproc) \ No newline at end of file +(define+provide-module-begin-in-mode world:mode-preproc) + +(module reader racket/base + (require pollen/reader-base) + (define+provide-reader-in-mode world:mode-auto)) \ No newline at end of file diff --git a/markdown.rkt b/markdown.rkt index 176b1fa..ed652ef 100644 --- a/markdown.rkt +++ b/markdown.rkt @@ -1,3 +1,7 @@ #lang racket/base (require pollen/main-base) -(define+provide-module-begin-in-mode world:mode-markdown) \ No newline at end of file +(define+provide-module-begin-in-mode world:mode-markdown) + +(module reader racket/base + (require pollen/reader-base) + (define+provide-reader-in-mode world:mode-markdown)) \ No newline at end of file diff --git a/markdown/lang/reader.rkt b/markdown/lang/reader.rkt deleted file mode 100644 index ddd711d..0000000 --- a/markdown/lang/reader.rkt +++ /dev/null @@ -1,3 +0,0 @@ -#lang racket/base -(require pollen/lang/reader-base) -(define+provide-reader-in-mode world:mode-markdown) \ No newline at end of file diff --git a/markup.rkt b/markup.rkt index 6d4fee4..9e29ee0 100644 --- a/markup.rkt +++ b/markup.rkt @@ -1,3 +1,7 @@ #lang racket/base (require pollen/main-base) -(define+provide-module-begin-in-mode world:mode-markup) \ No newline at end of file +(define+provide-module-begin-in-mode world:mode-markup) + +(module reader racket/base + (require pollen/reader-base) + (define+provide-reader-in-mode world:mode-markup)) \ No newline at end of file diff --git a/markup/lang/reader.rkt b/markup/lang/reader.rkt deleted file mode 100644 index 7f6545f..0000000 --- a/markup/lang/reader.rkt +++ /dev/null @@ -1,3 +0,0 @@ -#lang racket/base -(require pollen/lang/reader-base) -(define+provide-reader-in-mode world:mode-markup) \ No newline at end of file diff --git a/pagetree/lang/reader.rkt b/pagetree/lang/reader.rkt deleted file mode 100644 index 222b526..0000000 --- a/pagetree/lang/reader.rkt +++ /dev/null @@ -1,3 +0,0 @@ -#lang racket/base -(require pollen/lang/reader-base) -(define+provide-reader-in-mode world:mode-pagetree) \ No newline at end of file diff --git a/pre.rkt b/pre.rkt index 0db9baf..4d79def 100644 --- a/pre.rkt +++ b/pre.rkt @@ -1,3 +1,7 @@ #lang racket/base (require pollen/main-base) -(define+provide-module-begin-in-mode world:mode-preproc) \ No newline at end of file +(define+provide-module-begin-in-mode world:mode-preproc) + +(module reader racket/base + (require pollen/reader-base) + (define+provide-reader-in-mode world:mode-preproc)) \ No newline at end of file diff --git a/pre/lang/reader.rkt b/pre/lang/reader.rkt deleted file mode 100644 index 07d4ced..0000000 --- a/pre/lang/reader.rkt +++ /dev/null @@ -1,3 +0,0 @@ -#lang racket/base -(require pollen/lang/reader-base) -(define+provide-reader-in-mode world:mode-preproc) \ No newline at end of file diff --git a/ptree.rkt b/ptree.rkt index 6c03437..aa5be30 100644 --- a/ptree.rkt +++ b/ptree.rkt @@ -1,3 +1,7 @@ #lang racket/base (require pollen/main-base) -(define+provide-module-begin-in-mode world:mode-pagetree) \ No newline at end of file +(define+provide-module-begin-in-mode world:mode-pagetree) + +(module reader racket/base + (require pollen/reader-base) + (define+provide-reader-in-mode world:mode-pagetree)) \ No newline at end of file diff --git a/lang/reader-base.rkt b/reader-base.rkt similarity index 100% rename from lang/reader-base.rkt rename to reader-base.rkt diff --git a/render.rkt b/render.rkt index 13cf267..ce3e74d 100644 --- a/render.rkt +++ b/render.rkt @@ -226,7 +226,7 @@ pollen/decode pollen/file pollen/main - pollen/lang/reader-base + pollen/reader-base pollen/pagetree pollen/template pollen/world @@ -261,7 +261,7 @@ pollen/decode pollen/file pollen/main - pollen/lang/reader-base + pollen/reader-base pollen/pagetree pollen/project-requires pollen/template