Skip to content

Files

Latest commit

a54987c · May 31, 2021

History

History
This branch is 517 commits behind kanaka/mal:master.

lib

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 11, 2020
Feb 11, 2020
May 31, 2021
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020
Feb 11, 2020

This directory contains general-purpose reusable code that does not fit in the process.

The split in small files is motivated by implementations too limited to load a single big file, but MAL has no proper module management.

However, here are some guidelines.

  • Begin with an one-line ;; short description

  • Describe the restrictions on each parameter in comments.

  • Define private symbols in hidden environments when possible. If this is not possible, for example for macros, give them a name starting with an underscore.

If a module provides tests, you may run against an implementation IMPL with these commands.

make IMPL^stepA
cd tests
python ../runtest.py lib/MODULE.mal ../IMPL/run

Users and implementors should use the following syntax in order to ensure that the same file is only loaded once.

(load-file      "../lib/load-file-once.mal")
(load-file-once "../lib/foo.mal")
(load-file-once "../lib/bar.mal")