Add a simple syntax checker
Merge pull request #1782 from zz9pzza/syntax_check

Add a simple syntax checker