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

?? is not used at all, but registered as a lexer token #4762

Closed
vicuna opened this issue Mar 30, 2009 · 2 comments
Closed

?? is not used at all, but registered as a lexer token #4762

vicuna opened this issue Mar 30, 2009 · 2 comments
Assignees

Comments

@vicuna
Copy link

@vicuna vicuna commented Mar 30, 2009

Original bug ID: 4762
Reporter: furuse
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:07:29Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty

Bug description

The keyword "??" is defined as QUESTIONQUESTION in lexer.mll, but it is never used in parser.mly. As a result, we cannot define the binary operator ?? even though it is not harmful at all.

@vicuna
Copy link
Author

@vicuna vicuna commented Apr 29, 2009

Comment author: @pierreweis

?? was used to handle errors in stream parsers.

I don't know if it is still necessary with the new Camlp4 implementation...

@vicuna
Copy link
Author

@vicuna vicuna commented Jul 30, 2012

Comment author: @alainfrisch

?? is no longer considered as a token. It can thus be defined as an operator. However, note that it defines a prefix operator, not a binary one.

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

Successfully merging a pull request may close this issue.

None yet
2 participants