Skip to main content

encode_program_source

Function encode_program_source 

Source
pub fn encode_program_source(source: &str) -> Result<String, ParseError>
Expand description

Encode a LOGOS program (given as source) into CProgram construction source.

Takes LOGOS source code (with or without ## Main header) and returns LOGOS source code that constructs the equivalent CProgram data structure. The result defines a variable prog of type CProgram.