MCPcopy Create free account
hub / github.com/devosoft/avida / parseVariableDefinitionList

Method parseVariableDefinitionList

avida-core/source/script/cParser.cc:1060–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058}
1059
1060cASTVariableDefinitionList* cParser::parseVariableDefinitionList()
1061{
1062 PARSE_TRACE("parseVariableDefinitionList");
1063 Apto::SmartPtr<cASTVariableDefinitionList> vl(new cASTVariableDefinitionList(FILEPOS));
1064
1065 cASTVariableDefinition* vd = parseVariableDefinition();
1066 if (!vd) return NULL;
1067
1068 (*vl).AddNode(vd);
1069 while (currentToken() == TOKEN(COMMA)) {
1070 nextToken(); // consume ','
1071 vd = parseVariableDefinition();
1072 if (!vd) return NULL;
1073 (*vl).AddNode(vd);
1074 }
1075
1076 return vl.Release();
1077}
1078
1079cASTNode* cParser::parseWhileStatement()
1080{

Callers

nothing calls this directly

Calls 2

ReleaseMethod · 0.80
AddNodeMethod · 0.45

Tested by

no test coverage detected