Skip to content

Commit

Permalink
Added backslash to N8 parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 23, 2024
1 parent 7889918 commit 7f581e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/n8/parser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ std::shared_ptr<ASTNode> Parser::exprFactor() {

while(this->isNext("*", TokenType::OPERATOR) ||
this->isNext("/", TokenType::OPERATOR) ||
this->isNext("\\", TokenType::OPERATOR) ||
this->isNext("%", TokenType::OPERATOR)) {
Token op = this->consume(TokenType::OPERATOR);
expression = std::make_shared<BinaryExpression>(
Expand Down

0 comments on commit 7f581e9

Please sign in to comment.