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

"as pattern" syntax difference between camlp4o and yacc parsers #3965

Closed
vicuna opened this issue Jan 26, 2006 · 1 comment
Closed

"as pattern" syntax difference between camlp4o and yacc parsers #3965

vicuna opened this issue Jan 26, 2006 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jan 26, 2006

Original bug ID: 3965
Reporter: berke
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:31:25Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.0
Fixed in version: 3.10.0
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

Ocaml rejects `(x,y) as z' but camlp4o accepts it.

% cat z.ml
fun (x,y) as z -> y;;
% ocamlc z.ml
File "z.ml", line 1, characters 10-12:
Syntax error
% ocamlc -pp camlp4o z.ml
File "z.ml", line 1, characters 4-14:
Warning Y: unused variable z.

@vicuna
Copy link
Author

vicuna commented Oct 5, 2008

Comment author: ertai

camlp4o no longer accept this syntax to be compatible with ocamlc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant