ada.2: typo
[jackhill/mal.git] / impls / lib / README.md
CommitLineData
3e9b89d4 1This directory contains general-purpose reusable code that does not
9bdff6ea 2fit in the process.
3e9b89d4
NB
3
4The split in small files is motivated by implementations too limited
5to load a single big file, but MAL has no proper module management.
6
7However, here are some guidelines.
8
9- Begin with an one-line ;; short description
10
3e9b89d4
NB
11- Describe the restrictions on each parameter in comments.
12
13- Define private symbols in hidden environments when possible. If this
14 is not possible, for example for macros, give them a name starting
15 with an underscore.
16
83665b4f
NB
17If a module provides tests, you may run against an implementation IMPL
18with these commands.
19```
20make IMPL^stepA
21cd tests
22python ../runtest.py lib/MODULE.mal ../IMPL/run
23```
13e679cd
NB
24
25Users and implementors should use the following syntax in order to
26ensure that the same file is only loaded once.
27
28```
29(load-file "../lib/load-file-once.mal")
30(load-file-once "../lib/foo.mal")
31(load-file-once "../lib/bar.mal")
32```