all repos — min @ 55bddeb1e0244d56289057cabf2eb47813ef6fe9

A small but practical concatenative programming language.

Minor changes.
Tue, 08 Dec 2020 21:05:05 +0000




1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M site/contents/learn-extending.mdsite/contents/

@@ -85,7 +85,7 @@

The following code is taken from [HastySite]( and shows how to define a new `hastysite` module containing some symbols (`preprocess`, `postprocess`, `process-rules`, ...): ``` -import packages/min/min +import min proc hastysite_module*(i: In, hs1: HastySite) = var hs = hs1

@@ -167,12 +167,14 @@

You can compile the following library by running the following command: > %min-terminal% -> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \ +> \-\-noMain dyntest.nim If you are using [clang]( to compile Nim code, you may need to run the following command instead: > %min-terminal% -> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain -l:"-undefined dynamic\_lookup" dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain \ +> -l:"-undefined dynamic\_lookup" dyntest.nim Now you should have a `|dyn|dll` file. To make min load it and link it automatically when it starts, just run: