all repos — min @ 55bddeb1e0244d56289057cabf2eb47813ef6fe9

A small but practical concatenative programming language.

Minor changes.
h3rald h3rald@h3rald.com
Tue, 08 Dec 2020 21:05:05 +0000
commit

55bddeb1e0244d56289057cabf2eb47813ef6fe9

parent

b670fd2e6dd05e65b38dd286bc44b15fd489a6ad

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

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

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

The following code is taken from [HastySite](https://github.com/h3rald/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](https://clang.llvm.org/) 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 `libdyntest.so|dyn|dll` file. To make min load it and link it automatically when it starts, just run: