44 using namespace Aleph;
47 inputs.
append({
"main.line",
"let answer = int 1\n"});
51 (void) driver.
execute_sources(inputs, Compiler_Driver_Action::Parse_Only);
56 resolution.filter = Compiler_Module_Name_Filter::Value;
Reusable pipeline driver that operates on any Compiler_Frontend.
Example frontend for a tiny line-oriented language built on reusable contracts.
Reusable diagnostics for top-level inter-module name resolution.
Reusable namespace-separated semantic environment for modules.
Reusable orchestration object built on top of Compiler_Frontend.
bool execute_sources(const DynArray< Compiler_Driver_Source > &inputs, const Compiler_Driver_Action action=Compiler_Driver_Action::Run)
Runs the pipeline over in-memory sources.
Small example frontend for a line-oriented language.
T & append()
Allocate a new entry to the end of array.
Main namespace for Aleph-w library functions.
const char * compiler_module_name_resolution_status_name(const Compiler_Module_Name_Resolution_Status status) noexcept
Returns the stable debug name for one module-name resolution status.
const Compiler_Module_Semantic_Module * compiler_find_module_semantic_environment(const Compiler_Module_Semantic_Environment &env, const std::string_view module_name) noexcept
Finds one semantic environment by module name.
Structured result returned by reusable module-name resolution.
Semantic environments for all modules in one compilation unit set.