pub fn parse(idl: &str) -> Result<IdlRoot, String>
解析 WebIDL 字符串
idl
Ok(oak_idl::ast::IdlRoot)
Err(String)