没有合适的资源?快使用搜索试试~ 我知道了~
ppx_sexp_conv:根据类型定义生成S表达式转换函数
共61个文件
ml:22个
mli:19个
dune:7个
需积分: 5 0 下载量 140 浏览量
2021-05-07
11:34:34
上传
评论
收藏 64KB ZIP 举报
温馨提示
ppx \ _sexp \ _conv [@@ deriving sexp] ppx_sexp_conv是一个PPX语法扩展,可生成代码,用于将OCaml类型与s表达式相互转换,如库中所定义。 S表达式由以下类型定义: type sexp = Atom of string | List of sexp list 并且被呈现为带括号的字符串列表,例如(This (is an) (s expression)) 。 ppx_sexp_conv适合框架,因此您可以像调用其他任何派生插件一样调用它。 因此,我们可以写 type int_pair = ( int * int ) [ @@ deriving sexp ] 获取两个自动定义的值, sexp_of_int_pair和int_pair_of_sexp 。 如果我们只想要一个方向,则可以编写以下其中之一。 type int_pair
资源推荐
资源详情
资源评论
收起资源包目录
ppx_sexp_conv-master.zip (61个子文件)
ppx_sexp_conv-master
dune 0B
CHANGES.md 2KB
src
dune 150B
ppx_sexp_conv.mli 172B
ppx_sexp_conv.ml 4KB
ppx_sexp_conv.opam 730B
dune-project 16B
README.org 16KB
CONTRIBUTING.md 2KB
runtime-lib
dune 126B
ppx_sexp_conv_lib.ml 268B
test
ppx_sexp_test.mli 0B
sexp_grammar
test_regular_variants.ml 3KB
test_base_map.ml 710B
test_regular_variants.mli 45B
test_recursive_groups.ml 2KB
dune 464B
test_polymorphic_variants.ml 3KB
test_test.mli 45B
test_variants_more.ml 2KB
test_nonrec.mli 45B
test_gadt.ml 3KB
test_opaque.mli 45B
test_polymorphic_variants.mli 45B
test_polymorphic_variants.mlt 2KB
test_opaque.ml 311B
test_allow_extra_fields.mli 45B
test_polymorphism.mli 45B
test_gadt.mli 45B
test_polymorphism.ml 833B
test_nonrec.ml 408B
test_functors.ml 4KB
test_variants_more.mli 0B
regular_vs_polymorphic_variants.diff 3KB
test_recursive_groups.mli 45B
test_coverage_for_deriving.mli 5KB
test_allow_extra_fields.ml 3KB
test_extension.ml 613B
test_coverage_for_deriving.ml 15KB
test_functors.mli 45B
test_extension.mli 45B
test_test.ml 2KB
test_base_map.mli 45B
dune 202B
ppx_sexp_test.ml 26KB
errors.mlt 8KB
lib
dune 125B
conv_test.ml 2KB
test.sexp 430B
examples.mlt 993B
nonrec_test.ml 2KB
expander
dune 228B
ppx_sexp_conv_grammar.ml 17KB
ppx_sexp_conv_grammar.mli 405B
attrs.mli 1KB
ppx_sexp_conv_expander.mli 2KB
attrs.ml 6KB
ppx_sexp_conv_expander.ml 70KB
LICENSE.md 1KB
Makefile 259B
.gitignore 33B
共 61 条
- 1
资源评论
王奥雷
- 粉丝: 56
- 资源: 4711
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功