Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 941 Bytes

ARCHITECTURE.md

File metadata and controls

25 lines (13 loc) · 941 Bytes

Architecture

This document describes the high-level architecture of Metalang99.

Interpreter

The interpreter interprets the core metalanguage described in the specification.

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.

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.