Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: impl AsRef<Path>) -> Result<Value, String>
Expand description

解析 SML 文件,并展开其中的 include 指令。

相对路径以该文件所在目录为基准。include 展开为零拷贝 token 流, 不拼接中间大字符串(方向 B)。