diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 3eb154c..a7d06b4 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -208,18 +208,18 @@ shared_ptr Parser::matchStatementVariable() { Parsee::tokenParsee(TokenKind::LEFT_ARROW, true, false), Parsee::expressionParsee(true) }, - { } + {} ) ); if (resultsGroup.getKind() != ParseeResultsGroupKind::SUCCESS) return nullptr; - string name = resultsGroup.getResults().at(0).getToken()->getLexme(); + string identifier = resultsGroup.getResults().at(0).getToken()->getLexme(); shared_ptr valueType = resultsGroup.getResults().at(1).getValueType(); shared_ptr expression = resultsGroup.getResults().at(2).getExpression(); - return make_shared(name, valueType, expression); + return make_shared(identifier, valueType, expression); } shared_ptr Parser::matchStatementFunction() {