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

Method Parse

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

Source from the content-addressed store, hash-verified

215}
216
217bool cParser::Parse(cFile& input)
218{
219 m_filename = input.GetFilename();
220 m_lexer = new cLexer(input.GetFileStream());
221
222 m_tree = parseStatementList();
223
224 if (!m_eof && m_success) PARSE_ERROR(UNEXPECTED_TOKEN);
225 if (!m_tree) PARSE_ERROR(EMPTY);
226
227 delete m_lexer;
228 m_lexer = NULL;
229
230 return m_success;
231}
232
233cParser::~cParser()
234{

Callers 1

mainFunction · 0.80

Calls 1

GetFileStreamMethod · 0.80

Tested by

no test coverage detected