From rlpowell@digitalkingdom.org Fri Apr 30 16:52:04 2004 Received: with ECARTIS (v1.0.0; list lojban-list); Fri, 30 Apr 2004 16:52:04 -0700 (PDT) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.31) id 1BJhnR-0006rz-JO for lojban-list@lojban.org; Fri, 30 Apr 2004 16:51:57 -0700 Date: Fri, 30 Apr 2004 16:51:57 -0700 To: lojban-list@lojban.org Subject: [lojban] Re: My parser and ZOI Message-ID: <20040430235157.GH14939@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 From: Robin Lee Powell X-archive-position: 7607 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 Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list 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 is as > follows: > > > - cut - > > #!/bin/sh > > cd /home/rlpowell/www/hobbies/lojban/grammar/rats > > cat - | \ > perl -p -e "s/(zoi[\s.]+|la'o[\s.]+)([a-zA-Z']+)([\s.]+.*[\s.]+)(\2)([\s.]+|\z)/\1QZOIMARKER\2\3\4\5QZOIMARKER/" | \ s;/";/g"; Duh. -Robin -- 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