Thread overview
Dessert waxes and floor toppings
Jan 11, 2016
Brian Schott
Jan 11, 2016
Basile B.
Jan 11, 2016
Basile B.
January 11, 2016
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
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
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