Total Complexity | 2 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | package yalep.antlr; |
||
12 | public class LogicalExpressionErrorListener extends BaseErrorListener { |
||
13 | |||
14 | |||
15 | @Override |
||
16 | public void reportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, ATNConfigSet configs) { |
||
17 | throw new RuntimeException("Expression is ambiguous"); |
||
|
|||
18 | } |
||
19 | |||
20 | @Override |
||
21 | public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) { |
||
22 | throw new RuntimeException("Expression has wrong syntax"); |
||
23 | } |
||
25 |