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.
- External
- Group
- Strutture e Union.
- Typedef