bugs/errors in the D BNF

Kirk McDonald kirklin.mcdonald at gmail.com
Fri Jan 12 03:38:49 PST 2007


BCS wrote:
> According to the spec Invariants are allowed in modules? Is this correct.
> 
> It's a minor nitpick but a number of productions are missing the ":" 
> after the name.
> 
> AsmPrimaryExp,
> DebugSpecification,
> DecimalExponent,
> DotIdentifier,
> Filespec,
> FunctionLiteral
> HexExponent
> HexStringChar
> Operands
> Postfix
> SingleQuotedCharacter
> SpecialTokenSequence
> SuperInterfaces
> TemplateParameterList
> VersionSpecification
> 
> A more major problem is that a number of productions are undefined. I 
> looked at this a while ago and many of them are defined, but under a 
> different name.
> 
> BaseClasslist
> CatchParameter
> DebugStatement
> ExpressionList
> FloatConstant
> IdentiferChar
> IdentiferStart
> IntegerConstant
> IntegerExpression
> Invariant
> LabeledStatement
> NamedCharacterEntity
> NumericLiteral
> Register
> Symbol
> TemplateIdentifer
> Tuple
> VersionStatement
> 
> BTW it would be vary nice if all of the productions were links to there 
> definitions.
> 
> 

I've been working on a D parser written in Python. It has become 
abundantly clear during this process that the grammar as defined in the 
spec is to be found wanting in quite a number of ways. I've been 
compiling a list of errors in the grammar. It is not in front of me at 
the moment, but I do plan on posting it at some point.

-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org


More information about the Digitalmars-d-bugs mailing list