【发布时间】:2012-09-27 17:46:47
【问题描述】:
$ ocaml
Objective Caml version 3.12.1
_________________________
[| + | | Batteries - |
|_____|_|_________________|
_________________________
| - Type '#help;;' | | + |]
|___________________|_|___|
Loading syntax extensions...
Camlp4 Parsing version 3.12.1
# (* i am just a comment. nobody cares about me. oh wait! *);;
# Error: Parse error: illegal begin of top_phrase
#
我收到了这个错误
Error: Parse error: illegal begin of top_phrase
当我尝试在解释器中输入评论时。 ocaml 解释器中不允许 cmets 还是我做错了什么?
【问题讨论】:
-
猜这是因为
;;不在评论范围内 -
如果
;;在注释块内,解释器会期待输入,直到再次以;;终止。
标签: ocaml ocaml-batteries