Adds some early syntax checking in the raw parsing code