Crate erg_compiler

source ·
Expand description

defines the compiler for Erg (ergc).

Re-exports

Modules

  • Defines Context.
  • implements SideEffectChecker SideEffectCheckerを実装 関数や不変型に副作用がないかチェックする
  • Perform basic linting on source code. What is implemented here affects subsequent optimizations, and erg_linter does linting that does not affect optimizations.
  • implements ASTLowerer.
  • defines Type (type kind). Some structures implement Display using LimitedDisplay. This is omitted when the display width is somewhat longer. If you want to get the full display, use LimitedDisplay::to_string_unabbreviated.

Macros

Structs

  • Summarize parsing and desugaring
  • Generates a CodeObj from an String or other File inputs.

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