Objects used to represent individual numbers.
More...
Objects used to represent individual numbers.
How is the number represented?
| Enumerator |
|---|
| REP_BITS |
For numbers specified per digit.
|
| REP_INTEGER |
For "Integer" typed numbers".
|
| REP_FLOAT |
For "real" typed numbers.
|
Creates a new number representation object.
- Todo:
- Implement proper representation converstion.
- Parameters
-
| base | What is the base of the number. |
| representation | How to interepret digits. |
| digits | The string token representing the number. |
| char* ast_number_tostring |
( |
ast_number * |
n | ) |
|
A utility function for converting an ast number into a string.
- Parameters
-
| [in] | n | - The number to turn into a string. |