Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=8), | public, | parameter | :: | ops | = | ',+-*/^()' | |
integer, | public, | parameter | :: | R_SPAN | = | 99 | |
integer, | public, | parameter | :: | T_NONE | = | -1 | |
integer, | public, | parameter | :: | T_REAL | = | -2 | |
integer, | public, | parameter | :: | T_IMAG | = | -3 | |
integer, | public, | parameter | :: | T_VAR | = | -4 | |
integer, | public, | parameter | :: | T_CMA | = | 001 | |
integer, | public, | parameter | :: | T_LPR | = | 002 | |
integer, | public, | parameter | :: | T_RPR | = | 003 | |
integer, | public, | parameter | :: | T_OPERATOR | = | 200 | |
integer, | public, | parameter | :: | T_ADD | = | 201 | |
integer, | public, | parameter | :: | T_SUB | = | 202 | |
integer, | public, | parameter | :: | T_MUL | = | 203 | |
integer, | public, | parameter | :: | T_DIV | = | 204 | |
integer, | public, | parameter | :: | T_POW | = | 205 | |
integer, | public, | parameter | :: | T_FUNCTION | = | 100 | |
integer, | public, | parameter | :: | T_NEG | = | 101 | |
integer, | public, | parameter | :: | T_SQRT | = | 102 | |
integer, | public, | parameter | :: | T_EXP | = | 103 | |
integer, | public, | parameter | :: | T_LOG | = | 104 | |
integer, | public, | parameter | :: | T_ABS | = | 105 | |
integer, | public, | parameter | :: | T_SIN | = | 106 | |
integer, | public, | parameter | :: | T_COS | = | 107 | |
integer, | public, | parameter | :: | T_TAN | = | 108 | |
integer, | public, | parameter | :: | T_ASIN | = | 109 | |
integer, | public, | parameter | :: | T_ACOS | = | 110 | |
integer, | public, | parameter | :: | T_ATAN | = | 111 | |
integer, | public, | parameter | :: | T_LOG10 | = | 112 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | N |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
class(node_t), | public, | allocatable | :: | node |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(genericNode_t), | public, | dimension(:), allocatable | :: | levels |
public function newNodeStack(N) |
procedure, public :: pop | |
procedure, public :: push |
Type for a single mathematical token
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | t | = | T_NONE | Token type |
|
real(kind=wp), | public | :: | a | = | 0.0_wp | Token real value (if any) |
|
character(len=8), | public | :: | s | = | '' | Token label (if any) |
Constructors for token_t
public function newToken(str) | Constructor for token_t |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | N |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(nodeStack_t), | intent(inout) | :: | self |
Constructor for token_t
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str | String to parse |
New token_t
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(nodeStack_t), | intent(inout) | :: | self | |||
class(node_t), | intent(in) | :: | a |