Validate syntax