Skip to main content

parse_module

Function parse_module 

Source
pub fn parse_module(source: &str, module_name: &str) -> FrontendResult<Module>
Expand description

Parse Rust source into a factorio_ir::module::Module.

module_name is used as the module identifier in the resulting IR.

ยงErrors

Returns Err if the Rust source fails to parse