Skip to main content

parse_definition

Function parse_definition 

Source
pub fn parse_definition(input: &str) -> Result<Command, ParseError>
Expand description

Parse “## To [name] (params) -> RetType:” into Command::Definition

Handles implicit fixpoints: if the function name appears in the body, the body is automatically wrapped in Term::Fix.