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
?? probably isn't a keyword #8025
Comments
Comment author: administrator
You haven't looked in the right grammar...
Many keywords are reserved, that also match one of the lexical
Actually, we have a bug here, because the normal compiler accepts ?? as -- Damien |
Comment author: administrator Need to make ?? a keyword in parsing/lexer.mll. |
Comment author: administrator
Makes sense. Thanks.Tim Freeman |
Original bug ID: 1553
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
At http://caml.inria.fr/ocaml/htmlman/manual009.html, under "Keywords", the
keyword "??" is listed.
So far as I can tell, this keyword appears nowhere in the grammar and
is not a possible output from the lexer.
Also, this keyword also matches the lexical syntax for prefix-symbol
as described in "Prefix and infix symbols", so having "??" as a
keyword makes the lexical grammar ambiguous.
Therefore, I think the document is in error and does not describe the
implemented language. I can't figure out what was intended, though.
Tim Freeman
tim@fungible.com
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78
The text was updated successfully, but these errors were encountered: