21 |
#include <map> |
#include <map> |
22 |
#include <set> |
#include <set> |
23 |
#include <string.h> // for memset() |
#include <string.h> // for memset() |
24 |
|
#include <assert.h> |
25 |
#include "../common/global.h" |
#include "../common/global.h" |
26 |
#include "../common/Ref.h" |
#include "../common/Ref.h" |
27 |
#include "../common/ArrayList.h" |
#include "../common/ArrayList.h" |
62 |
return (ExprType_t) -1; |
return (ExprType_t) -1; |
63 |
} |
} |
64 |
|
|
65 |
|
inline ExprType_t scalarTypeOfArray(ExprType_t arrayType) { |
66 |
|
if (arrayType == INT_ARR_EXPR) return INT_EXPR; |
67 |
|
if (arrayType == REAL_ARR_EXPR) return REAL_EXPR; |
68 |
|
if (arrayType == STRING_ARR_EXPR) return STRING_EXPR; |
69 |
|
assert(false); |
70 |
|
return EMPTY_EXPR; // just to shut up the compiler |
71 |
|
} |
72 |
|
|
73 |
/** |
/** |
74 |
* Used by parser for parser error messages to provide a text with all data |
* Used by parser for parser error messages to provide a text with all data |
75 |
* types accepted by the given built-in function @a fn for the respective |
* types accepted by the given built-in function @a fn for the respective |