vrq
Functions

/net/fileserver/nas/home/mdh/vrq/src/compile.h File Reference

Go to the source code of this file.

Functions

void AnalyseModules (CNode *codeList, set< CModule * > &allModules, set< CModule * > &topLevelModules, set< CModule * > &leafModules, set< CModule * > &undefinedModules, map< CModule *, CNode * > &module2Comments)
 Analyse module declarations in parse tree.
int ResolveReference (CNode *ref, CDataType *&dataType, vector< CNode * > &unpackedDimensions, vector< CNode * > &packedDimensions, vector< CNode * > &residualPackedIndices)
 Get datatype info for array, structure and variable references.

Function Documentation

int ResolveReference ( CNode ref,
CDataType *&  dataType,
vector< CNode * > &  unpackedDimensions,
vector< CNode * > &  packedDimensions,
vector< CNode * > &  residualPackedIndices 
)

Get datatype info for array, structure and variable references.

Parameters:
ref reference to a decl/array/member node
dataType resolved base data type
unpackedDimensions list of unresolved unpacked dimensions
packedDimensions list of unresolved packed dimensions
residualPackedIndices list of unresolved packed indices
Returns:
-1 if reference is valid but unresolvable 0 if reference is invalid 1 if reference is valid and was resolved