Skip to main content

Crate bern_compiler

Crate bern_compiler 

Source
Expand description

The Bern compiler front end.

It reads the explicitly listed source files with the same parser the macros use, checks commands, bindings, localization, windows and component references, and produces the versioned bern_ir::Application that independent target modules consume. It never runs application code.

Re-exports§

pub use config::Config;
pub use config::SourceFile;

Modules§

config
Bern.toml: project, language, theme, source, resource and target configuration.
style
Lower style! into the application’s style sheet and check it: known controls, properties and states, semantic color roles, explicit colors for both modes, and motion tokens that exist.

Structs§

Compiled
Result of a successful compilation.
Signature
Parameters of a component as seen by its callers.

Functions§

check_library
Check that a library descriptor matches this application: versions and translations for every language the application requires.
compile
Collect, check and lower a project to IR.
compile_library
Generate the versioned descriptor of a component library from its sources. Library components are presentational: they take value parameters only and cannot own session state or call commands.
location
Locations are reported relative to the project, like rustc does.