Decl Typedef -- Dichiarazione dei Tipi


Queste dichiarazioni permetto di definire un nuovo tipo dato.

La grammatica prevista è la seguente.

declaration: typedef_decl_stm
           | typedefine_decl_stm

typedef_decl_stm: typedef_decl ';' tight_comment(?)
typedefine_decl_stm: typedefine_decl tight_comment(?)
typedef_decl: 'typedef' typedef_type IDENTIFIER array_decl(s?)
typedef_type: struct_tag comment(?) struct_body 
typedef_type: struct_decl
typedef_type: type
typedefine_decl: '#define' IDENTIFIER type
tight_comment: line_comment(s?)
line_comment: / \/ \/ .*? $/xm

Un esempio di codice.


  1. External
  2. Group
  3. Strutture e Union.
  4. Typedef
dsg.tag.decl.typedef • LastModified: 14-9-2007 • John Peter Arnold