Re: [INCOMPLETE] semantic/bovine/c: support typed enum
David Engster <[email protected]> Wed, 21 Jan 2015 22:40:07 +0100
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
Ramkumar Ramachandra writes:
> I've struggled with this long enough. Why doesn't it work? What am I
> missing?
[...]
> +enum-type
> + : type
> + ;
> +
> +opt-enum-type
> + : COLON enum-type
> + ,(car $2)
> + |
> + ;
The 'type' rule matches complete type declarations like
unsigned foo;
You are probably looking for 'typeformbase'. So try with
opt-enum-type
: COLON typeformbase
( ,$2 )
| ;; EMPTY
;
and
| ENUM opt-class opt-name opt-enum-type enumparts
(TYPE-TAG (car $3) $1 $5 nil
:parent (car ,$2)
:enum-type (car $4))
-David
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet