From cowan@ccil.org Fri Sep 07 03:30:27 2001 Return-Path: X-Sender: cowan@mercury.ccil.org X-Apparently-To: lojban@yahoogroups.com Received: (EGP: mail-7_3_2_1); 7 Sep 2001 10:30:27 -0000 Received: (qmail 34612 invoked from network); 7 Sep 2001 10:30:27 -0000 Received: from unknown (10.1.10.142) by l9.egroups.com with QMQP; 7 Sep 2001 10:30:27 -0000 Received: from unknown (HELO mercury.ccil.org) (192.190.237.100) by mta3 with SMTP; 7 Sep 2001 10:30:26 -0000 Received: from cowan by mercury.ccil.org with local (Exim 3.12 #1 (Debian)) id 15fIu0-0000kw-00; Fri, 07 Sep 2001 06:30:24 -0400 Subject: Re: [lojban] LALR1 question In-Reply-To: <20010902230828.B432@rrbcurnow.freeuk.com> from Richard Curnow at "Sep 2, 2001 11:08:28 pm" To: Richard Curnow Date: Fri, 7 Sep 2001 06:30:24 -0400 (EDT) Cc: lojban@yahoogroups.com X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: X-eGroups-From: John Cowan From: John Cowan X-Yahoo-Message-Num: 10527 Richard Curnow scripsit: > I guess there's some clever trick being used to workaround this, but > I've not worked out what it is. Can anyone enlighten me? In the official parser, the lexer will simply scoop up as many tokens as it needs to, backtracking if it finds something that doesn't match its expectations. All these tokens become a single YACC token. -- John Cowan http://www.ccil.org/~cowan cowan@ccil.org Please leave your values | Check your assumptions. In fact, at the front desk. | check your assumptions at the door. --sign in Paris hotel | --Miles Vorkosigan