Skip to main content

Module codegen

Module codegen 

Source

Modules§

emitter
grammar_ir
name_mangler
type_mapper

Enums§

Error

Functions§

emit_str_to_out_dir
Generates typed AST code from a node-types.json string and writes it to $OUT_DIR.
emit_to_out_dir
Reads a node-types.json file, generates typed AST code, and writes it to $OUT_DIR.
format
Formats a TokenStream into pretty-printed Rust source code.
generate
Generates a TokenStream of typed AST definitions from the contents of a node-types.json.
generate_to_string
Generates typed AST code from node-types.json contents and returns it as formatted Rust source.