From 5a8b70ca247b52f7ac3804bae71fdc09cd4fe8c3 Mon Sep 17 00:00:00 2001 From: "Christopher L. Conway" Date: Wed, 20 Oct 2010 21:49:22 +0000 Subject: [PATCH] Enabling semantic checks in ParserBuilder --- src/parser/parser_builder.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.30.2