[dlang.org] [D-Programming-Language/dlang.org] 6f231c: Add grammar.dd

GitHub noreply at github.com
Wed Dec 11 00:30:32 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dlang.org
  Commit: 6f231caef61eeab5b342c4deca525451fb50139b
      https://github.com/D-Programming-Language/dlang.org/commit/6f231caef61eeab5b342c4deca525451fb50139b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M declaration.dd
    A grammar.dd

  Log Message:
  -----------
  Add grammar.dd

Copy GRAMMAR sections from other files.


  Commit: 8b9aa7b0bb9a03257583797c9a6f8967f2eac008
      https://github.com/D-Programming-Language/dlang.org/commit/8b9aa7b0bb9a03257583797c9a6f8967f2eac008
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Fix style - Replace $(B ) to $(D )


  Commit: 438426e994e811d48ba6f5bfdd8e5ac2bb0c30f0
      https://github.com/D-Programming-Language/dlang.org/commit/438426e994e811d48ba6f5bfdd8e5ac2bb0c30f0
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Fix style - Insert space between tokens, remove MULTICOLS


  Commit: efe2b9cb3c734e4d728a1e1fdf6d2f2d991148a1
      https://github.com/D-Programming-Language/dlang.org/commit/efe2b9cb3c734e4d728a1e1fdf6d2f2d991148a1
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Fix links


  Commit: 40bef994c36c60ebb1cb6a986f93d3d3785af3c8
      https://github.com/D-Programming-Language/dlang.org/commit/40bef994c36c60ebb1cb6a986f93d3d3785af3c8
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Sort out sections and non-terminal symbols

- Add 'type' section

- Collect functions in 'function' section
  `Constructor` `Destructor` `StructPostblit` `UnitTest` etc

- AggregateDeclaration
  Contains ClassDeclaration and InterfaceDeclaration

- [Bug fix] Move `Pragma` and `Property` in 'attributes' section
  `@safe`, `@trusted`, and `@system` should be a part of `Attribute`


  Commit: 8c3df0e6f30355da1bee957f71debdb3bf7f89da
      https://github.com/D-Programming-Language/dlang.org/commit/8c3df0e6f30355da1bee957f71debdb3bf7f89da
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Tweak grammar (1)

- Replace identical non-terminal symbols to general ones
  # `CCDeclarationBlock` to `DeclarationBlock`
  # `Declarations` to `DeclDefs`opt

- Remove `AliasThisDeclaration` so it's identical with `AliasThis`

- Rename to more general names: Postblit, Allocator, Deallocator

- Add AggregateBody, and replace other XXXBody to it

- Remove TemplateIdentifier, MixinIdentifier, and ConstraintExpression
  They are mostly redandant

- Rename `Aggregate` to `ForeachAggregate`
  Avoid confusion with `AggregateDeclaration`

- Use `TemplateParameters`

- Use `OPT` for the positions which can be empty


  Commit: 91816e51468bc57eb6cf82a21e4570734ca4927a
      https://github.com/D-Programming-Language/dlang.org/commit/91816e51468bc57eb6cf82a21e4570734ca4927a
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Tweak grammar (2)

- Tweak `AliasInitializer` grammar
  Resemble `AutoDeclaration`.

- Add `ExpInitializer`

- Merge `Lambda` into `FunctionLiteral`

- Replace `CastQual` to `TypeCtors`
  They are mostly identical.

- Add `SpecialKeyword`


  Commit: bbfa1fb966b5dd35005cd6cec2b1f64dd847e994
      https://github.com/D-Programming-Language/dlang.org/commit/bbfa1fb966b5dd35005cd6cec2b1f64dd847e994
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Tweak grammar (3) - Bug fixes

- If `TemplateParameters` does not exist, `Constraint` must not appear.

- `StorageClass` and `Attribute` should be mostly same list
  `Attribute` should contain `pure` and `nothrow`

- Add missing `MemberFunctionAttributes`opt
  TODO: Currently (shared) static constructor cannot have postfix attributes.

- Add missing grammar for opaque class and interface

- Add Anon(Struct|Union)Declaration

- Fix `IfCondition`


  Commit: da1eccb85dd05fca8f6e723ca634e50b3b947b89
      https://github.com/D-Programming-Language/dlang.org/commit/da1eccb85dd05fca8f6e723ca634e50b3b947b89
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Fix grammar bugs around `Declaration`

- `Declaration` should contain `(Aggregate|Enum|Import)Declaration`
  Otherwise we cannot use them in statement scope via `DeclarationStatement`.

- Move out `AliasThis` from `Declaration`
  It cannot appear in statement scope.

- `StorageClass` and `Attribute` should be mostly same list
  Add missing `LinkageAttribute` and `AlignAttribute` in `StorageClass`.
  Add missing `pure`, `nothrow` in the list of `Attribute`.
  Add missing `ref` in both `Attribute` and `StorageClass`.


  Commit: 79606ca2ffdc4d70ff28da3b1f689fbde0c01907
      https://github.com/D-Programming-Language/dlang.org/commit/79606ca2ffdc4d70ff28da3b1f689fbde0c01907
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  fix Issue 10206 - User-defined attributes not documented well in language specification


  Commit: 085061b8593d2381fb336efc593d6416dc25a098
      https://github.com/D-Programming-Language/dlang.org/commit/085061b8593d2381fb336efc593d6416dc25a098
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M grammar.dd

  Log Message:
  -----------
  Remove lex part from grammar.dd

It would be better that we leave them in lex.dd.


  Commit: d1e3e5f1221e912f90ba7dd013be1e1c2947c8fc
      https://github.com/D-Programming-Language/dlang.org/commit/d1e3e5f1221e912f90ba7dd013be1e1c2947c8fc
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-12-11 (Wed, 11 Dec 2013)

  Changed paths:
    M declaration.dd
    A grammar.dd

  Log Message:
  -----------
  Merge pull request #429 from 9rnsr/grammar

Add grammar.dd to show complete D grammar


Compare: https://github.com/D-Programming-Language/dlang.org/compare/7745bca4d4c0...d1e3e5f1221e


More information about the dlang.org mailing list