C17 implementation of the Prefix programming language.
This repository contains the reference implementation of the Prefix programming language, written in ISO C17 and targeting Clang on baseline x64 Windows. The codebase includes the lexer, parser, interpreter\runtime, standard library bindings, and supporting tools used by the reference implementation.
.github\workflows\: GH Actions CI configuration.docs\: Documentation for Prefix, builds GH Pages site.ext\lib\src\: Source code and headers for the interpreter.tests\: Automated test suite..gitignore: Git ignore file.build.ps1: Build script for the interpreter and tests.README.md: This file.
- Windows Vista or newer.
- LLVM\Clang toolchain with C17 support.
- PowerShell (to run the included build script)
To build the interpreter run:
& path\to\Prefix\build.ps1The build.ps1 script invokes Clang and produces the interpreter, standard library, and test binaries.
Ensure your Clang installation is on PATH before running the script.
Automated tests live under the top-level tests\ directory. You can run the test harness with PowerShell:
& path\to\Prefix\tests\test.ps1The docs are located in Prefix\docs\.
Prefix is distributed under the Unlicense.
Prefix follows SemVer 2.0, treating the specification as the public API.