2
$ 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
#
當我試圖進入在解釋評論我收到此錯誤OCaml的頂層沒有解釋意見
Error: Parse error: illegal begin of top_phrase
。在ocaml解釋器中不允許註釋,或者我做錯了什麼?
猜測這是因爲'';;在外面評論 –
如果'';;是註釋塊裏,解釋期望輸入到用';;'再次終止。 – Animesh