Skip to main content

Crate fastc

Crate fastc 

Source
Expand description

FastC transpiler - a C-like language that compiles to C11

Re-exports§

pub use build::BuildContext;
pub use build::BuildError;
pub use deps::Cache;
pub use deps::Fetcher;
pub use deps::Lockfile;
pub use deps::Manifest;
pub use deps::ModuleLoader;
pub use deps::ModuleResolver;
pub use fmt::check_formatted;
pub use fmt::format;
pub use scaffold::create_project;
pub use scaffold::init_project;
pub use scaffold::BuildTemplate;
pub use scaffold::ProjectType;

Modules§

ast
AST node definitions for FastC
build
Build orchestration for FastC projects
deps
Dependency and module resolution for FastC
diag
Diagnostic infrastructure
emit
C11 code emitter
fmt
Source code formatter for FastC
lexer
Lexer for FastC source code
lower
Lowering from FastC AST to C AST
parser
Parser for FastC
resolve
Name resolution pass
scaffold
Project scaffolding for FastC
typecheck
Type checking pass

Functions§

check
Type-check FastC source without emitting C
compile
Compile FastC source code to C11
compile_with_options
Compile FastC source code to C11 with optional header generation