-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture
Leonard Ramminger edited this page Aug 31, 2026
·
1 revision
prebyte-engine is the templating core extracted from the Prebyte CLI. It owns parsing, compilation, rendering, Lua, and embed APIs.
-
config/— settings, profiles, rules, variable imports -
io/— input and output helpers -
template/lexer/— tokens -
template/parser/— recursive-descent parser -
template/ast/— typed AST nodes -
runtime/— renderer, compiled executor, include resolver, value resolution, Lua runtime -
support/— diagnostics and spans -
datatypes/— shared value and type helpers
Public entry points:
| Header | Role |
|---|---|
PrebyteEngine.h |
High-level session API |
Engine.h |
Low-level compile/render API |
prebyte_engine.h |
C FFI |
- source lexed into tokens
- parser builds AST
- compiler emits
CompiledProgram - executor renders program with scoped variables, functions, includes, and Lua support
-
.pbt— source template -
.pbc— compiled cache
| Target | Alias | Description |
|---|---|---|
prebyte_engine_static |
prebyte::engine_static |
Static library |
prebyte_engine |
prebyte::engine |
Shared C++ library |
prebyte_engine_c |
prebyte::engine_c |
C FFI shared library |
The Prebyte CLI adds cli/ and app/ on top of this engine.