| Thread overview | |||||
|---|---|---|---|---|---|
|
January 11, 2016 Dessert waxes and floor toppings | ||||
|---|---|---|---|---|
| ||||
I have an idea to simplify the grammar: Attribute: Pragma | ProtectionAttribute | FloorWaxOrDessertTopping ; StorageClass: "enum" | FloorWaxOrDessertTopping ; FloorWaxOrDessertTopping: "abstract" | AlignAttribute | "auto" | "const" | DeprecatedAttribute | "enum" | "extern" | "final" | "__gshared" | "immutable" | "inout" | LinkageAttribute | "nothrow" | "override" | Property | "pure" | "ref" | "scope" | "shared" | "static" | "synchronized" ; I'm only half joking. | ||||
January 11, 2016 Re: Dessert waxes and floor toppings | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | On Monday, 11 January 2016 at 10:27:59 UTC, Brian Schott wrote: > I have an idea to simplify the grammar: > > Attribute: > Pragma > | ProtectionAttribute > | FloorWaxOrDessertTopping > ; > > StorageClass: > "enum" > | FloorWaxOrDessertTopping > ; > > FloorWaxOrDessertTopping: > "abstract" > | AlignAttribute > | "auto" > | "const" > | DeprecatedAttribute > | "enum" > | "extern" > | "final" > | "__gshared" > | "immutable" > | "inout" > | LinkageAttribute > | "nothrow" > | "override" > | Property > | "pure" > | "ref" > | "scope" > | "shared" > | "static" > | "synchronized" > ; > > I'm only half joking. Grammar is a bit over me but are you talking about this: http://dpaste.dzfl.pl/bfc71e865596 --- enum A{A0,A1} enum B = 1; enum {C,D} void main() { static assert(is(A==enum)); static assert(!is(B==enum)); static assert(!is(C==enum)); } --- by any chance ? | |||
January 11, 2016 Re: Dessert waxes and floor toppings | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Monday, 11 January 2016 at 11:09:11 UTC, Basile B. wrote: > On Monday, 11 January 2016 at 10:27:59 UTC, Brian Schott wrote: >> I have an idea to simplify the grammar: >> >> Attribute: >> Pragma >> | ProtectionAttribute >> | FloorWaxOrDessertTopping >> ; >> >> StorageClass: >> "enum" >> | FloorWaxOrDessertTopping >> ; >> >> FloorWaxOrDessertTopping: >> "abstract" >> | AlignAttribute >> | "auto" >> | "const" >> | DeprecatedAttribute >> | "enum" >> | "extern" >> | "final" >> | "__gshared" >> | "immutable" >> | "inout" >> | LinkageAttribute >> | "nothrow" >> | "override" >> | Property >> | "pure" >> | "ref" >> | "scope" >> | "shared" >> | "static" >> | "synchronized" >> ; >> >> I'm only half joking. > > Grammar is a bit over me but are you talking about this: > ? Sorry for the noise, I've just get why you posted this: https://github.com/Hackerpilot/libdparse/issues/69 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply