File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 62
62
} catch (CalcoolException ce) {
63
63
// CalcoolException means your expression was not valid
64
64
stderr.writefln(ce.msg);
65
- } catch (EndException e) {
66
- // Ignore EndException, it only indicates the end of parsing phase, sorry
67
65
} catch (Exception e) {
68
66
// Something bad happened! Do what you have to do.
69
67
}
Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ version (CLI_APP) {
46
46
p.parseExpression().evaluate().writeln();
47
47
} catch (CalcoolException ce) {
48
48
stderr.writeln(ce.msg);
49
- } catch (EolException e) {
50
- continue ;
51
49
} catch (EofException e) {
52
50
break ;
53
51
} catch (Exception e) {
@@ -65,8 +63,6 @@ version (CLI_APP) {
65
63
} catch (CalcoolException ce) {
66
64
stderr.writefln(ce.msg);
67
65
return 1 ;
68
- } catch (EndException e) {
69
- return 0 ;
70
66
} catch (Exception e) {
71
67
return 2 ;
72
68
}
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public:
80
80
left = infix.parse(this , left, token);
81
81
}
82
82
83
- if (start && input.length > 0 && input.front ().type != TokenType.EOL ) {
83
+ if (start && input.length > 0 && consume ().type != TokenType.EOL ) {
84
84
error();
85
85
}
86
86
return left;
You can’t perform that action at this time.
0 commit comments