diff --git a/src/AST/UnaryOpNode.cpp b/src/AST/UnaryOpNode.cpp index 15f3e0c..1a0b67e 100644 --- a/src/AST/UnaryOpNode.cpp +++ b/src/AST/UnaryOpNode.cpp @@ -1,7 +1,6 @@ #include "UnaryOpNode.h" -UnaryOpNode::UnaryOpNode(std::shared_ptr operand) - : operand(operand), ExprNode() +UnaryOpNode::UnaryOpNode(std::shared_ptr operand) : operand(operand), ExprNode() { } diff --git a/src/Parser.cpp b/src/Parser.cpp index 01ca4d9..05bba80 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -19,7 +19,7 @@ std::shared_ptr Parser::parse() if (result.is_error()) result.ethrow(); if (current_token->tk_type != TT_EOF) { - Err("expected *, /, + or -",current_token).ethrow(); + Err("expected *, /, + or -", current_token).ethrow(); } return result.get(); }