From 09e2747bf8c6dcdc1d7318f2490f0de37d77b39f Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 5 Sep 2021 21:03:05 -0400 Subject: Added a chapter on cross-platform Lux. --- .../the_lux_programming_language/appendix_a.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'documentation/book/the_lux_programming_language/appendix_a.md') diff --git a/documentation/book/the_lux_programming_language/appendix_a.md b/documentation/book/the_lux_programming_language/appendix_a.md index 29a84a9df..a14ef2823 100644 --- a/documentation/book/the_lux_programming_language/appendix_a.md +++ b/documentation/book/the_lux_programming_language/appendix_a.md @@ -4,7 +4,7 @@ You've already seen some import syntax, but now you'll see all the options avail If you recall [Chapter 1](chapter_1.md), there was this example code: -``` +```clojure (.module: [library [lux #* @@ -47,7 +47,7 @@ It is also important to note that while imports can be nested for convenience, t The `.module:` declaration could just as easily been written like this: -``` +```clojure (.module: [library/lux #*] [library/lux/program (#+ program:)] @@ -63,7 +63,7 @@ Any module-path fragments included in the import syntax without such options wil It is also possible to have the `.module:` macro open interface implementations for you when importing the modules that contain them. For example: -``` +```clojure (.module: [library [lux #* @@ -89,7 +89,7 @@ The `#` syntax for aliasing can also be used between modules, and not just when For example: -``` +```clojure (.module: [library [lux #* @@ -108,7 +108,7 @@ Non-aliased paths don't count as context. This means: -``` +```clojure (.module: [library [lux #* @@ -128,7 +128,7 @@ I should also note that you can **both** locally import definitions and open imp For example: -``` +```clojure (.module: [library [lux #* @@ -143,7 +143,7 @@ Another important feature of module imports is relative addressing, which comes For the first one, suppose you have the following directory structure: -``` +```clojure program foo bar @@ -160,7 +160,7 @@ And you're writing code in the `program/foo/baz` module. You can import other modules in the hierarchy like this: -``` +```clojure ... In program/foo/baz (.module: [library @@ -183,7 +183,7 @@ You can think about it like this: Also, this relative path syntax can be nested, like so: -``` +```clojure ... In program/foo/baz (.module: [library @@ -199,7 +199,7 @@ Also, this relative path syntax can be nested, like so: Or even: -``` +```clojure ... In program/foo/baz (.module: [library @@ -219,7 +219,7 @@ That is because, since it's nested under another `//`, it's relative to `program For the second way to do relative imports, you can see this example: -``` +```clojure ... In program/foo/baz (.module: [library -- cgit v1.2.3