Literal
The diagrams below draw one box per node kind, with one port per field. The edge colours say how a link is held; they are listed in full on the Fields page.
Iir_Kind_Integer_Literal
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
owned |
Get/Set the value of the integer. |
|
|
|
owned |
Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources. |
|
|
|
owned |
The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr. |
|
|
|
ref |
— |
|
|
|
owned |
Expression staticness, defined by rules of LRM 7.4 |
Iir_Kind_Floating_Point_Literal
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
owned |
The value of the literal. |
|
|
|
owned |
Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources. |
|
|
|
owned |
The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr. |
|
|
|
ref |
— |
|
|
|
owned |
Expression staticness, defined by rules of LRM 7.4 |
Iir_Kind_Null_Literal
The null literal, which can be a disconnection or a null access.
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
ref |
— |
|
|
|
owned |
Expression staticness, defined by rules of LRM 7.4 |
Iir_Kind_String_Literal8
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
owned |
Number of literals in the expanded string. |
|
|
|
owned |
Before analysis, this is the ASCII code of each character in the string. After analysis, this is the position of each literal. |
|
|
|
owned |
Number of characters in the string literal (given by the scanner). |
|
|
|
owned |
Used for computed literals. Literal_Origin contains the expression whose value was computed during analysis and replaces the expression. |
|
|
|
owned |
Same as Type, but marked as property of that node. |
|
|
|
ref |
— |
|
|
|
owned |
Base of the bit_string (corresponds to letters ‘b’, ‘o’, ‘d’ or ‘x’ in the base specifier). |
|
|
|
owned |
Expression staticness, defined by rules of LRM 7.4 |
|
|
|
owned |
True if the bit string is signed, (ie letter ‘s’ is present in the base specifier). |
|
|
|
owned |
True if the letter ‘u’ is present in the base specifier. |
|
|
|
owned |
True if the integer specifying the length is present. |
Iir_Kind_Physical_Int_Literal
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
owned |
The multiplicand. |
|
|
|
owned |
The name of the physical unit. |
|
|
|
owned |
Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources. |
|
|
|
owned |
The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr. |
|
|
|
ref |
— |
|
|
|
owned |
Must be set to locally except for time literal, which is globally. |
Iir_Kind_Physical_Fp_Literal
Format: Short
Accessor |
Field |
Type |
Access |
Description |
|---|---|---|---|---|
|
|
owned |
The multiplicand. |
|
|
|
owned |
The name of the physical unit. |
|
|
|
owned |
Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources. |
|
|
|
owned |
The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr. |
|
|
|
ref |
— |
|
|
|
owned |
Must be set to locally except for time literal, which is globally. |