enums

Doug Evans dje@transmeta.com
Wed Dec 6 08:55:00 GMT 2000


Johan Rydberg writes:
 > Ofcouse, here's the result:
 > 
 > ERROR: In procedure caar:
 > ERROR: Wrong type argument in position 1: ()

cgen needs to be more robust with bad input.
One might construct an argument that () should just be ignored
instead of flagged as an error.  dunno.

Take the line with () out.

 (define-enum
   (name e-exception)
   (comment "exception vectors")
>  ()
   (prefix E_)
   (values ("RESET") ("BUSERR" -) ("DPF" -) ("IPF" -) 
           ("EXTINT" -) ("ALIGN" -) ("ILLEGAL" -) ("PEINT" -)
           ("DTLBMISS" -) ("ITLBMISS" -) ("RRANGE" -) 
           ("SYSCALL" -) ("BREAK" -) ("RESERVED" -))
 )


More information about the Cgen mailing list