Skip to main content

parse

Function parse 

Source
pub fn parse(idl: &str) -> Result<IdlRoot, String>
Expand description

解析 WebIDL 字符串

§参数

  • idl: 要解析的 WebIDL 字符串

§返回值

  • Ok(IdlRoot): 解析成功,返回 WebIDL AST
  • Err(String): 解析失败,返回错误信息