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

Antiquotation bug (quotation expr, with antiquotation list) (Mantis 5685) #74

Open
damiendoligez opened this issue Jan 9, 2015 · 0 comments

Comments

@damiendoligez
Copy link

Transferred from http://caml.inria.fr/mantis/view.php?id=5685
This is the original bug report, but see the Mantis page for the discussion and patch.

value f x = <:expr< $list:x$ >> ;
will be accepted and the type is weird
list Ast.ident -> Ast.expr (This absolutely not what I want)
The problem comes from that in the parser entry
expr accept TRY val_longident which accept ANTIQUOT, and the context is changed.
I guess there maybe other similar bugs in other places. The patch is attached, plz review the patch. Thanks
Another problem, I added some tracing functionality for the parser in my in-home camlp4 which helps me a lot to pinpoint the problem. How about the idea to add some tracing for the parser?

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

No branches or pull requests

1 participant