Expresses primary terms of expressions. These can be sub-expressions, numbers, identifiers etc.
More...
|
enum | ast_primary_type { CONSTANT_PRIMARY,
PRIMARY,
MODULE_PATH_PRIMARY
} |
| Describes the kind of expression primary being represented, and hence the sort of expression we are dealing with.
|
|
enum | ast_primary_value_type {
PRIMARY_NUMBER,
PRIMARY_IDENTIFIER,
PRIMARY_CONCATENATION,
PRIMARY_FUNCTION_CALL,
PRIMARY_MINMAX_EXP,
PRIMARY_MACRO_USAGE
} |
| The kind of production the expression primary holds.
|
|
Expresses primary terms of expressions. These can be sub-expressions, numbers, identifiers etc.
Creates a new ast primary which is part of a constant expression tree with the supplied type and value.
- Parameters
-
[in] | type | - Self explanatory |
Creates a new ast primary which is part of a constant expression tree with the supplied type and value.
- Parameters
-
[in] | type | - Self explanatory |
Creates a new ast primary which is part of an expression tree with the supplied type and value.
- Parameters
-
[in] | type | - Self explanatory |
ast_primary* ast_new_primary_function_call |
( |
ast_function_call * |
call | ) |
|
Creates a new AST primary wrapper around a function call.
- Parameters
-
[in] | call | - The AST node representing a function call. |
A utility function for converting an ast expression primaries back into a string representation.
- Parameters
-
[in] | p | - The expression primary to turn into a string. |