Crate erg_compiler
source ·Expand description
defines the compiler for Erg (ergc).
Re-exports§
pub extern crate erg_parser;
pub use lower::ASTLowerer;
Modules§
- Defines
Context
.Context
is used for type inference and type checking. - implements SideEffectChecker SideEffectCheckerを実装 関数や不変型に副作用がないかチェックする
- implements
ASTLowerer
.
Structs§
- Generates a
CodeObj
from anAST
. The input AST is not typed, so it’s typed byASTLowerer
according to the cfg.opt_level.
Enums§
- registered as global -> Globaldefined in the toplevel scope (and called in the inner scope) -> Globaldefined and called in the toplevel scope -> Localnot defined in the toplevel and called in the inner scope -> Derefdefined and called in the current scope (except the toplevel) -> Fast