Expand description
Core library to parse, analyze, and compile the SMPL language.
- This crate does NOT come with the means to execute SMPL code.
- Use a crate like smpli for a runtime/std instead
§Using the Crate
- Find your SMPL module code and create an
UnparsedModule
- Convert your collection of
UnparsedModule
into aProgram
by:- Preparse using
parser::parse_module()
and callingProgram::from_parsed()
- Call
Program::from_unparsed()
directly
- Preparse using
- Pass off the
Program
to a code generator (such as insmpl::byte_gen
)- Code generators will have full access to type information, control flow, metadata, etc.
Modules§
- byte_
gen - Data structures/functions to convert analyzed SMPL code into byte code instructions.
- error
- Contains smpl’s top level error type.
- metadata
- Contains data structures for metadata collected during static analysis.
- module
- Contains data structures used to represent SMPL code.
- parser
- prelude
- program