Skip to content
New issue

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

camlc vs. camlp4 parsing #3234

Closed
vicuna opened this issue Mar 4, 2002 · 1 comment
Closed

camlc vs. camlp4 parsing #3234

vicuna opened this issue Mar 4, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 4, 2002

Original bug ID: 956
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Francois Rouaix
Version: 3.04
OS: Linux
Submission from: ca-redbch-u1-c3b-189.stmnca.adelphia.net (24.54.194.189)

Consider the following .mli file

val f : ?a:int -> unit
val g : ?a : int -> unit

It compiles with ocamlc
but ocamlc -pp ocamlp4o fails with
Parse error: [type] expected after ':' (in [sig_item])
Preprocessing error

Not clear if the bug is in the reference grammar, in camlp4o or camlc.
You decide. Now that I have to use -pp camlp4o everywhere to get my
stream code to compile, I'd like -pp camlp4o to be backward compatible...
If the code compiles without, it should compile with.

Not urgent to fix since the workaround is obvious...

@vicuna
Copy link
Author

vicuna commented Mar 6, 2002

Comment author: administrator

val f : ?a:int -> unit
val g : ?a : int -> unit

It compiles with ocamlc
but ocamlc -pp camlp4o fails with

It works in 3.04+7. There were many changes to camlp4 recently, and I don't
know if this is a side-effect or if it was explicitely fixed.

-- damien

@vicuna vicuna closed this as completed Mar 6, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant