split stripCommentsAndCheckBasicSyntax into two separate functions, one stripping parts and the other doing the basic syntax checks