Skip to content

Commit 87de9d5

Browse files
committed
Almost finished
1 parent 2acf035 commit 87de9d5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/java/ParserOperations/ExpressionParser.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ private boolean isSimpleExpression() {
111111
} else if (tool.isValueToken(tool.getCurrentToken())) {
112112
tool.incrementIndex();
113113
result = true;
114+
115+
} else if (tool.verifyToken(TokenType.RESTA)) {
116+
tool.incrementIndex();
117+
if (tool.verifyToken(TokenType.ENTERO) || tool.verifyToken(TokenType.DECIMAL)) {
118+
tool.incrementIndex();
119+
result = true;
120+
}
114121
} else {
115122
tool.showError("Se esperaba un valor");
116123
}
129 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)