diff options
author | Eduardo Julian | 2021-09-05 21:03:05 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-09-05 21:03:05 -0400 |
commit | 09e2747bf8c6dcdc1d7318f2490f0de37d77b39f (patch) | |
tree | ccee4dd90b0f5f84d813a8f29b3b9a5dc602068b /documentation/book/the_lux_programming_language/chapter_9.md | |
parent | 0f7bfa0d4a4e5a79fffe72adec1dd35992c7dde3 (diff) |
Added a chapter on cross-platform Lux.
Diffstat (limited to 'documentation/book/the_lux_programming_language/chapter_9.md')
-rw-r--r-- | documentation/book/the_lux_programming_language/chapter_9.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/book/the_lux_programming_language/chapter_9.md b/documentation/book/the_lux_programming_language/chapter_9.md index acc17e2aa..49ffe48bb 100644 --- a/documentation/book/the_lux_programming_language/chapter_9.md +++ b/documentation/book/the_lux_programming_language/chapter_9.md @@ -22,7 +22,7 @@ Most compilers are just programs that take source code and emit some binary exec The `Lux` type enters the stage. -``` +```clojure (type: #export Lux {#info Info #source Source @@ -70,7 +70,7 @@ I won't go into detail about what's available, but you'll quickly get an idea of However, one thing I _will_ say is that those functions rely heavily on the `Meta` type, which is defined thusly: -``` +```clojure (type: #export (Meta a) (-> Lux (Either Text [Lux a]))) ``` @@ -101,7 +101,7 @@ Another important piece of information you should be aware of is that definition The relevant types in the `library/lux` module are: -``` +```clojure (type: #export Location {#module Text #line Nat @@ -135,7 +135,7 @@ All you need to do is pass in some record syntax, with tags signaling the type o Here's an example from `library/lux`: -``` +```clojure (def: #export (is? reference sample) {#.doc (doc "Tests whether the 2 values are identical (not just 'equal')." "This one should succeed:" |