summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-10-20 21:49:22 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-10-20 21:49:22 +0000
commit5a8b70ca247b52f7ac3804bae71fdc09cd4fe8c3 (patch)
treeb1f8814c98a277bc884338a9b25805eac8b0fb53
parent69cbd24de47f4a5f72cfe85c346056f1a0c30d90 (diff)
Enabling semantic checks in ParserBuilder
-rw-r--r--src/parser/parser_builder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser/parser_builder.cpp b/src/parser/parser_builder.cpp
index dcc052c3a..31f402df1 100644
--- a/src/parser/parser_builder.cpp
+++ b/src/parser/parser_builder.cpp
@@ -95,6 +95,12 @@ Parser *ParserBuilder::build() throw (InputStreamException,AssertionException) {
parser = new Parser(&d_exprManager, input, d_strictMode);
}
+ if( d_checksEnabled ) {
+ parser->enableChecks();
+ } else {
+ parser->disableChecks();
+ }
+
return parser;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback