Implement syntax checks.