Crate papyri_lang

Source
Expand description

This crate provides a compiler for the Papyri markup language.

Modules§

compiler
This module contains the backend of the Papyri compiler; it is responsible for compiling an abstract syntax tree into HTML (or plain text).
errors
This module contains type definitions for errors and warnings which can occur during compilation of a Papyri source file.
parser
This module contains the frontend of the Papyri compiler; it is responsible for parsing a Papyri source file into an abstract syntax tree.
utils
This module contains various utility or convenience functions which may be used in multiple other modules.

Macros§

native_defs
This macro generates the declarations enum NativeFunc, struct NativeDefs, Compiler::evaluate_native_func and Compiler::evaluate_native_attr.

Functions§

compile_str
Compiles Papyri source given as a string into HTML, as a string. If any errors or warnings occur during compilation, the diagnostics are returned instead.