Module ir_to_bytecode::parser

source ·

Functions

  • Given the raw input of a file, creates a single ModuleDefinition struct Fails with Err(_) if the text cannot be parsed
  • Given the raw input of a file, creates a Script struct Fails with Err(_) if the text cannot be parsed
  • Given the raw input of a file, creates a ScriptOrModule enum Fails with Err(_) if the text cannot be parsed`