https://issues.dlang.org/show_bug.cgi?id=22543
Issue ID: 22543 Summary: [spec] grammar blocks use unspecified notation Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dlang.org Assignee: nob...@puremagic.com Reporter: dkor...@live.nl Newsgroup discussion: https://forum.dlang.org/post/gwcvsqctgsuetdyfe...@forum.dlang.org Blocks like: ``` SpecialTokenSequence: # line IntegerLiteral Filespecopt EndOfLine # line __LINE__ Filespecopt EndOfLine ``` ``` ByteOrderMark: \uFEFF Shebang: #! Charactersopt EndOfShebang EndOfShebang: \u000A EndOfFile ``` Have a certain meaning: - an identifier with a colon denotes a rule - the following lines denote alternatives - spaces between elements of a rule denote either immediate concatenation (lexical grammar), or optional separation by Comments and WhiteSpace (parsing grammar) - the 'opt' suffix means 'optional' - text in boldface denotes a string / character literal (lexical grammar) or single token (parsing grammar) But none of this is specified. --