rust-sexp:Rust sexp 解析

时间:2024-06-23 05:17:39
【文件属性】:

文件名称:rust-sexp:Rust sexp 解析

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-23 05:17:39

Rust

在 Rust 中解析 S-Exp 从: ((data " quoted data " 123 4.5 ) (data (!@# ( 4.5 ) " (more " " data) " ))) 至: Some ([ Sexp ([ Sexp ([ Sym (data), QSym ( "quoted data" ), INum ( 123 ), FNum ( 4.5 )]), Sexp ([ Sym (data), Sexp ([ Sym ( ! @#), Sexp ([ FNum ( 4.5 )]), QSym ( "(more" ), QSym ( "data)" )])])])]) 然后回来: ((data " quoted data " 123 4.5 ) (data (!@# ( 4.5 ) " (more " " data) " )))


【文件预览】:
rust-sexp-master
----Cargo.toml(190B)
----Cargo.lock(460B)
----src()
--------lib.rs(3KB)
----examples()
--------main.rs(314B)
----README.md(383B)
----.gitignore(63B)

网友评论