summaryrefslogtreecommitdiff
path: root/decoder/rule_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/rule_lexer.l')
-rw-r--r--decoder/rule_lexer.l7
1 files changed, 5 insertions, 2 deletions
diff --git a/decoder/rule_lexer.l b/decoder/rule_lexer.l
index 2de94587..2e5d3bf5 100644
--- a/decoder/rule_lexer.l
+++ b/decoder/rule_lexer.l
@@ -11,6 +11,7 @@
#include "tdict.h"
#include "fdict.h"
#include "trule.h"
+#include "verbose.h"
int lex_line = 0;
std::istream* scfglex_stream = NULL;
@@ -222,8 +223,10 @@ NT [^\t \[\],]+
// std::cerr << rp->AsString() << std::endl;
num_rules++;
lex_line++;
- if (num_rules % 50000 == 0) { std::cerr << '.' << std::flush; fl = true; }
- if (num_rules % 2000000 == 0) { std::cerr << " [" << num_rules << "]\n"; fl = false; }
+ if (!SILENT) {
+ if (num_rules % 50000 == 0) { std::cerr << '.' << std::flush; fl = true; }
+ if (num_rules % 2000000 == 0) { std::cerr << " [" << num_rules << "]\n"; fl = false; }
+ }
ctf_level = 0;
BEGIN(INITIAL);
}