We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We get different errors if #camlp4o is issued or not. IIUC, we are not catching the correct error when camlp4 is used.
#camlp4o
Without camlp4o:
$ cat a.ml let x-plus-y = x + y;; $ oloop a.ml (* part 0 *) # let x-plus-y = x + y;; Error: Syntax error
With camlp4o:
$ cat a.ml #use "topfind";; #camlp4o;; let x-plus-y = x + y;; $ oloop a.ml -silent-directives (* part 0 *) # #use "topfind";; # #camlp4o;; # let x-plus-y = x + y;; Pervasives.Exit
Note the specific error also differs in OCaml's toplevel:
$ ocaml -noinit OCaml version 4.02.1 # let x-plus-y = x + y;; Error: Syntax error
versus:
$ ocaml -noinit OCaml version 4.02.1 # #use "topfind";; # #camlp4o;; # let x-plus-y = x + y;; Error: Parse error: [fun_binding] expected after [ipatt] (in [let_binding])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We get different errors if
#camlp4o
is issued or not. IIUC, we are not catching the correct error when camlp4 is used.Without camlp4o:
With camlp4o:
Note the specific error also differs in OCaml's toplevel:
versus:
The text was updated successfully, but these errors were encountered: