Debug grammar