Validate syntax according specification.