From lojban-out@lojban.org Mon May 03 21:49:04 2004 Return-Path: X-Sender: lojban-out@lojban.org X-Apparently-To: lojban@yahoogroups.com Received: (qmail 69973 invoked from network); 4 May 2004 04:49:03 -0000 Received: from unknown (66.218.66.217) by m23.grp.scd.yahoo.com with QMQP; 4 May 2004 04:49:03 -0000 Received: from unknown (HELO chain.digitalkingdom.org) (64.81.49.134) by mta2.grp.scd.yahoo.com with SMTP; 4 May 2004 04:49:03 -0000 Received: from lojban-out by chain.digitalkingdom.org with local (Exim 4.31) id 1BKrrV-0000Yk-SM for lojban@yahoogroups.com; Mon, 03 May 2004 21:48:58 -0700 Received: from dsl081-049-134.sfo1.dsl.speakeasy.net ([64.81.49.134] helo=chain.digitalkingdom.org) by chain.digitalkingdom.org with esmtp (Exim 4.31) id 1BKrqs-0000YA-Jn; Mon, 03 May 2004 21:48:18 -0700 Received: with ECARTIS (v1.0.0; list lojban-list); Mon, 03 May 2004 21:48:15 -0700 (PDT) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.31) id 1BKrqh-0000Xy-S5 for lojban-list@lojban.org; Mon, 03 May 2004 21:48:08 -0700 Date: Mon, 3 May 2004 21:48:07 -0700 Message-ID: <20040504044807.GM14939@digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org References: <20040430233919.GE14939@digitalkingdom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040430233919.GE14939@digitalkingdom.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-archive-position: 7631 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org X-list: lojban-list To: lojban@yahoogroups.com X-eGroups-Remote-IP: 64.81.49.134 X-eGroups-From: Robin Lee Powell From: Robin Lee Powell Reply-To: rlpowell@digitalkingdom.org Subject: [lojban] Re: My parser and ZOI X-Yahoo-Group-Post: member; u=116389790 X-Yahoo-Profile: lojban_out X-Yahoo-Message-Num: 22101 On Fri, Apr 30, 2004 at 04:39:19PM -0700, Robin Lee Powell wrote: > I've decided that having a pre-processor just to handle ZOI wasn't > compromising my principles too badly. The entire pre-processor No longer exists. I've ended up doing it as semantic predicates and parser actions (AKA "little bits of embedded Java"). There are very *few* such bits. This solution means that the PEG itself is no longer a general PEG, but is tied to Rats!. However, as the bits of Java consist entirely of "save this to a variable" and "compare this to the variable we saved earlier", it is reasonable to expect that any functioning PEG parser generator[1] would be able to handle the same stuff. It works. It even handles "le zoi ibu cgi-bin ibu zei samselpla", which I want to mention is probably the nastiest piece of Lojban *ever*, once you know how it breaks down ("The "bu zei samselpla" thing associated with "bu cgi-bin"."; [shudder]). This, by the way, is the last known feature needed in my parser. I'll see what I can do about finishing the 10, 000 lines of testing output I have to go through. -Robin [1]: Pappy, the one made by the guy who invented PEGs, is non-functional as far as I can tell. Go figure. -- http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin. "Many philosophical problems are caused by such things as the simple inability to shut up." -- David Stove, liberally paraphrased. http://www.lojban.org/ *** loi pimlu na srana .i ti rokci morsi