我想检查Coq语法的信息,所以我将grammar.cma加载到utop:
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/fragment"
android:name=".MainFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout="@layout/main_fragment">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</fragment>
但是出现了错误:
#load "/home/xxx/.opam/system/lib/coq/grammar/grammar.cma";;
Coq版本:8.5.0 OCaml版本:4.02.3 utop版本:1.19
答案 0 :(得分:2)
我建议您使用Drop
命令,它实际上可以让您访问ML顶层以进行进一步开发。
$ coqtop.byte
Coq < Drop.
#
Drop
的文档:https://coq.inria.fr/refman/Reference-Manual008.html#hevea_command137