Skip to main content

expected_symbols

Function expected_symbols 

Source
pub fn expected_symbols(interface_signature: &str, goal: &str) -> Vec<String>
Expand description

Names the goal requires to exist, drawn from a declared interface signature and the natural-language goal text.

Two sources, both conservative:

  1. interface_signature — the contract’s declared public API. Declaration keywords there name required symbols directly.
  2. goal — backtick-quoted identifiers (`multiply`), and identifiers immediately followed by ( (a call/definition shape, e.g. `is_even(n: i32)`). Prose words are ignored unless they carry one of those code shapes, so a chatty goal does not manufacture obligations.