-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Mond1c/development
improve errors
- Loading branch information
Showing
49 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/org/linalg/expression/parser/exceptions/ParserException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.linalg.expression.parser.exceptions; | ||
|
||
public class ParserException extends RuntimeException { | ||
public ParserException(String expression, int pos, String message) { | ||
super(message + ": " + expression.substring(Math.max(0, pos - 11), pos - 1) | ||
+ " --> " + expression.charAt(pos - 1) + " <-- " | ||
+ (pos < expression.length() ? expression.substring(pos, Math.min(pos + 10, expression.length())) : "")); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-312 Bytes
(93%)
target/classes/org/linalg/expression/operations/BinaryOperation.class
Binary file not shown.
Binary file modified
BIN
-7 Bytes
(99%)
target/classes/org/linalg/expression/operations/Calculator.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-307 Bytes
(85%)
target/classes/org/linalg/expression/operations/Determinant.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-269 Bytes
(89%)
target/classes/org/linalg/expression/operations/Divide.class
Binary file not shown.
Binary file modified
BIN
-229 Bytes
(90%)
target/classes/org/linalg/expression/operations/Function.class
Binary file not shown.
Binary file modified
BIN
-221 Bytes
(89%)
target/classes/org/linalg/expression/operations/Inverse.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(100%)
target/classes/org/linalg/expression/operations/Multiply.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
target/classes/org/linalg/expression/operations/Negate.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-317 Bytes
(85%)
target/classes/org/linalg/expression/operations/Rank.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+66 Bytes
(100%)
target/classes/org/linalg/expression/operations/Solve.class
Binary file not shown.
Binary file modified
BIN
-123 Bytes
(94%)
target/classes/org/linalg/expression/operations/Sqrt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
target/classes/org/linalg/expression/operations/Subtract.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-221 Bytes
(89%)
target/classes/org/linalg/expression/operations/Transpose.class
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
target/classes/org/linalg/expression/operations/Triangle.class
Binary file not shown.
Binary file modified
BIN
-220 Bytes
(93%)
target/classes/org/linalg/expression/operations/UnaryOperation.class
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(100%)
target/classes/org/linalg/expression/parser/BaseParser.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-396 Bytes
(76%)
target/classes/org/linalg/expression/parser/StringSource.class
Binary file not shown.
Binary file added
BIN
+1.3 KB
target/classes/org/linalg/expression/parser/exceptions/ParserException.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.