我正在查看 Reasonml 代码,并在输出 AST 的文件中找到了 Config.ast_intf_magic_number
。
这个号码的用途是什么?为什么需要它?
引用: https://github.com/facebook/reason/blob/master/src/refmt/reason_interface_printer.ml#L48
最佳答案
它是一个二进制文件标识符,将文件标记为特定 OCaml 版本的 cmi。
关于ocaml - 生成 ocaml AST 时 Config.ast_impl_magic_number 的用途是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59286366/