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

Grouping several match cases in EXTEND statements #4590

Closed
vicuna opened this issue Jul 25, 2008 · 1 comment
Closed

Grouping several match cases in EXTEND statements #4590

vicuna opened this issue Jul 25, 2008 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Jul 25, 2008

Original bug ID: 4590
Reporter: @Chris00
Status: closed (set by @damiendoligez on 2015-01-09T18:10:33Z)
Resolution: suspended
Priority: normal
Severity: minor
Version: 3.10.2
Target version: undecided
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

The body of an EXTEND statement of the type

EXTEND
GLOBAL expr;

expr:
[ [ "XXX"; x = SELF | x = SELF; "XXX" -> do something with x ] ];
END

is interpreted as

[ "XXX"; x = SELF -> ()
| x = SELF; "XXX" -> do something with x ]

which is not at all what is expected and can lead to subtle bugs. Either the syntax should be supported, or an error should be raised.

@vicuna
Copy link
Author

vicuna commented Jan 9, 2015

Comment author: @damiendoligez

Transferred to camlp4/camlp4#65

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