We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b336cf commit 3ebaa61Copy full SHA for 3ebaa61
src/main.cpp
@@ -10,6 +10,7 @@
10
#include "PHPParser.h"
11
#include "PHPParserVisitor.h"
12
#include "PHPVisitor.h"
13
+#include "TitaniumAntlrErrorListener.h"
14
15
#define PHPBOT_VERSION "Beta1.0.0"
16
@@ -83,6 +84,12 @@ int main(int argc, const char* argv[]) {
83
84
PHPLexer lexer(&input);
85
CommonTokenStream tokens(&lexer);
86
PHPParser parser(&tokens);
87
+
88
+ if (!isDebug) {
89
+ parser.removeErrorListeners();
90
+ lexer.removeErrorListeners();
91
+ }
92
93
PHPParser::ProgContext* tree = parser.prog();
94
95
PHPVisitor visitor;
0 commit comments