Ticket grammar