mevento 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/mevento.mjs
CHANGED
|
@@ -847,7 +847,7 @@ class Parser {
|
|
|
847
847
|
case TokenType.minus:
|
|
848
848
|
case TokenType.not:
|
|
849
849
|
this._eat(this.currentToken.type);
|
|
850
|
-
return new UnaryExpressionAST(token, this.
|
|
850
|
+
return new UnaryExpressionAST(token, this._term());
|
|
851
851
|
case TokenType.numberConst:
|
|
852
852
|
this._eat(TokenType.numberConst);
|
|
853
853
|
return new LiteralAST(token, token.value.toString());
|