From c737f35ca7d74fc60cb18ee75a7211fcaff46677 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 4 Oct 2013 16:17:29 +0200 Subject: [PATCH] remove error message because odd numbers of apostrophes are valid for transposing matrices in Matlab syntax --- preprocessor/Statement.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/preprocessor/Statement.cc b/preprocessor/Statement.cc index 4017d99591..38da6e366d 100644 --- a/preprocessor/Statement.cc +++ b/preprocessor/Statement.cc @@ -93,12 +93,6 @@ NativeStatement::computingPass() else apostrophes.push_back(idx); - if (apostrophes.size() % 2) - { - cerr << "ERROR: A Matlab Statement has an odd number of apostrophes: " << native_statement << endl; - exit(EXIT_FAILURE); - } - bool skip = false; string newstr = ""; sregex date_expr = sregex::compile( "-?[0-9]+[Mm](1[0-2]|[1-9])|-?[0-9]+[Qq][1-4]|-?[0-9]+[Ww]([1-4][0-9]|5[0-2]|[1-9])" ); -- GitLab