Next: Expressions, Previous: subint, Up: Types and Expressions [Contents][Index]
extern dataApart from bool, enum, and int types introduced
above, also extern data types can be defined. An extern
data type is defined as follows:
extern ::= "extern" identifier data-expression ";" data-expression ::= "$" (!"$")* "$" | data-variable data-variable ::= identifier | port "." identifier
The data-expression is a type expression in the target
language.
No Dezyne-supported expressions are available for data types, apart from
data-expressions. The content of the data-expression is passed
to the target language verbatim.
For example, a C++ string type could be defined as follows:
extern string $std::string$;