src/parser/parser.cpp
void Parser::consume(lexer_namespace::Token::Symbol token_type)
{
    if(currentToken->getSymbol() != token_type)
        error("expected token " + lexer_namespace::Token::typeToString(token_type)); // in this situation parser can 'ignore' the lack of expected token
    nextToken();
}
// consume() is called when there is only one expected token, which will NOT be used to construct syntax tree
consume() is called when there is only one expected token, which will NOT be used to construct syntax tree
consume () is called when there is only one expected token which will NOT be used to construct syntax tree
void Parser::consume(lexer_namespace::Token::Symbol token_type)
{
    if(currentToken->getSymbol() != token_type)
        error("expected token " + lexer_namespace::Token::typeToString(token_type)); 
    nextToken();
}
void Parser :: consume ( lexer_namespace :: Token :: Symbol token_type ) { if ( currentToken -> getSymbol ( ) != token_type ) error ( " " + lexer_namespace :: Token :: typeToString ( token_type ) ) ; nextToken ( ) ; }
consume() is called when there is only one expected token, which will NOT be used to construct syntax tree
consume () is called when there is only one expected token which will NOT be used to construct syntax tree
// in this situation parser can 'ignore' the lack of expected token