Skip to main content

Module text

Module text 

Source
Expand description

Text (.sst) codec for the vihaco-backed ISA — vihaco ParsedModule grammar.

The grammar is:

version <major>.<minor>;
fn @main() {
  <instruction>
  ...
}

LanesHeader parses the version <major>.<minor> directive. LanesResolver lowers a ParsedModule<Instruction, LanesHeader> into a Program via super::program::from_code.

Enums§

LanesHeader
The only header we support: version <major>.<minor>.
TextError
Error from text (.sst) parsing.

Functions§

parse_text
Parse the vihaco fn @main grammar into a Program.
to_text
Emit the program as the vihaco fn @main grammar.