diff options
| author | 2026-02-23 20:36:05 +0100 | |
|---|---|---|
| committer | 2026-02-23 20:36:05 +0100 | |
| commit | 052144cabb126efe925a96f8a0597a0f2005d206 (patch) | |
| tree | 4fd87244b9eef018b30e90fdff24c5b1a145a85e /test/external/metalang99/ARCHITECTURE.md | |
| parent | 4e9020dfb847d80475415f9f5914efaa50238767 (diff) | |
add metalang99 testsuite (preprocessor stress testing)
Diffstat (limited to 'test/external/metalang99/ARCHITECTURE.md')
| -rw-r--r-- | test/external/metalang99/ARCHITECTURE.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/external/metalang99/ARCHITECTURE.md b/test/external/metalang99/ARCHITECTURE.md new file mode 100644 index 0000000..b1fe1cc --- /dev/null +++ b/test/external/metalang99/ARCHITECTURE.md @@ -0,0 +1,25 @@ +# Architecture + +_This document describes the high-level architecture of Metalang99._ + +## Interpreter + +The interpreter interprets the core metalanguage described in the [specification]. + +[specification]: https://github.com/hirrolot/metalang99/blob/master/spec/spec.pdf + +### `eval/eval.h` + +`eval/eval.h` exposes a single macro `ML99_PRIV_EVAL` which evaluates a given metaprogram. It is implemented as a machine in [continuation-passing style] which is described in the specification too. + +[continuation-passing style]: https://en.wikipedia.org/wiki/Continuation-passing_style + +### `eval/rec.h` + +`eval/rec.h` contains a macro recursion engine upon which everything executes. + +## Standard library + +The Metalang99 standard library is a set of functions implemented using the core metalanguage. They are located inside corresponding files listed at the [documentation]'s front page. + +[documentation]: https://metalang99.readthedocs.io/en/latest/ |