Skip to main content

parse_agent

Function parse_agent 

Source
pub fn parse_agent(source: &str) -> Result<JsValue, JsValue>
Expand description

Parse AgentScript source code and return the AST as a JavaScript object.

§Arguments

  • source - The AgentScript source code to parse

§Returns

  • Ok(JsValue) - The parsed AST as a JavaScript object
  • Err(JsValue) - Error message if parsing fails