Skip to main content

parse_contract

Function parse_contract 

Source
pub fn parse_contract(input: &str) -> Result<Contract>
Expand description

Parse ICL text into a semantic Contract (parse + lower)

Combines parsing (text → AST) with lowering (AST → semantic Contract).

§Errors

Returns ParseError for syntax errors or ValidationError for semantic issues (e.g., confidence_level out of range).