You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1628 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
However the implementation won't take "::(3,[])" as an expression.
I think the grammar in the document is wrong. I don't think it's a
good idea to try to accept "::" as both prefix and infix.
The questionable step in the derivation above is "::" being an
ncconstr-name. This production is used when deriving
type-definition ::= type x = :: of int * int
which is valid according to both the documented grammar and the
implementation. I think this is the only place you want to accept "::"
as a non-constant constructor name.
The best fix I can think of is to add this production to the document:
ncconstr-name-typedef ::= capitalized_ident | ::
and modify this one as follows:
constr-decl ::= cconstr-name | ncconstr-name-typedef of typexpr
--
Tim Freeman tim@fungible.com
Which is worse: ignorance or apathy? Who knows? Who cares?
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78
The text was updated successfully, but these errors were encountered:
Original bug ID: 1628
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Using the grammar from the document, I get:
expr ::= ncconstr expr
::= ncconstr (3, [])
::= ncconstr-name (3, [])
::= :: (3, [])
However the implementation won't take "::(3,[])" as an expression.
I think the grammar in the document is wrong. I don't think it's a
good idea to try to accept "::" as both prefix and infix.
The questionable step in the derivation above is "::" being an
ncconstr-name. This production is used when deriving
type-definition ::= type x = :: of int * int
which is valid according to both the documented grammar and the
implementation. I think this is the only place you want to accept "::"
as a non-constant constructor name.
The best fix I can think of is to add this production to the document:
ncconstr-name-typedef ::= capitalized_ident | ::
and modify this one as follows:
constr-decl ::= cconstr-name | ncconstr-name-typedef of typexpr
--
Tim Freeman tim@fungible.com
Which is worse: ignorance or apathy? Who knows? Who cares?
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78
The text was updated successfully, but these errors were encountered: