You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should also be prefixed with a black hash-character to indicate that in addition to # prompt, the user must type # also himself (like it is in the #load "dynlink.cma";; case)
Similarly, this line:
let lexer = make_lexer ["("; ")"; "+"; "-"; "*"; "/"];;
should in the text (showing toplevel-interaction) be prefixed with '#', just like:
The issue comes from the way how manual is generated right now. Everything inside "caml_example" LaTeX environment will be evaulated by the toplevel. The leading # will be prepended to text initially, and everything else comes as it is. However - if the toplevel outputs any response, the # will appear again in the begining of next chunk of code. I believe it's a bug (or incosistency) in the manual generator.
Original bug ID: 5506
Reporter: kosik
Assigned to: meyer
Status: closed (set by @damiendoligez on 2012-09-20T16:17:40Z)
Resolution: fixed
Priority: low
Severity: text
Version: 3.12.0
Target version: 4.00.1+dev
Category: documentation
Bug description
In the reference manual
http://caml.inria.fr/pub/docs/manual-ocaml/manual003.html#toc11
For consistency,
should also be prefixed with a black hash-character to indicate that in addition to # prompt, the user must type # also himself (like it is in the #load "dynlink.cma";; case)
Similarly, this line:
let lexer = make_lexer ["("; ")"; "+"; "-"; "*"; "/"];;
should in the text (showing toplevel-interaction) be prefixed with '#', just like:
#let token_stream = lexer(Stream.of_string "1.0 +x");;
The text was updated successfully, but these errors were encountered: