diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-10-20 21:49:22 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-10-20 21:49:22 +0000 |
commit | 5a8b70ca247b52f7ac3804bae71fdc09cd4fe8c3 (patch) | |
tree | b1f8814c98a277bc884338a9b25805eac8b0fb53 /src | |
parent | 69cbd24de47f4a5f72cfe85c346056f1a0c30d90 (diff) |
Enabling semantic checks in ParserBuilder
Diffstat (limited to 'src')
-rw-r--r-- | src/parser/parser_builder.cpp | 6 |
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; } |