From lojban+bncCK30vq5WEOePs-cEGgS-1Dq7@googlegroups.com Wed Nov 24 00:09:18 2010 Received: from mail-pz0-f61.google.com ([209.85.210.61]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1PLAPf-0005Ww-Pm; Wed, 24 Nov 2010 00:09:18 -0800 Received: by pzk7 with SMTP id 7sf366074pzk.16 for ; Wed, 24 Nov 2010 00:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:date:from:to:subject:message-id :references:mime-version:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=i1Lgc7D7T7DztoJ4ZqSExPcnYXWZ8m221QHWoSk3AZs=; b=IQ1p3Dcy+ysEsbbjXNrV1Gs7aVwODjBY4KOKFNAje/kBgZRIGUjkB6VnVZBS2Pi4nH w7Q8jeS2UVcEC/VpIakFUlioYpWtn1C5D61kooa8bi11T/M2uT4cn5HafIyITuX/WbfP 735PYkFZfOcWNtywQeVoXSpR+fbeJSXBrZpYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id:references :mime-version:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; b=o0FEGl3A/+fyN9qtRBa+tiixYj86mEnRFgZlnsnLswy7MNMQRdfVOixfg3g6hLwVx2 vLBdrBmJJRevpKk5IM0ubw1eiLEnofRVQzCvcXebwOCzWp9p2B6ejaXCYqFTlNrGz4lA Bt0tJSO2Zhdd5gMCTDHSYdITXHEy/OfojPWT0= Received: by 10.142.9.9 with SMTP id 9mr441174wfi.12.1290586087898; Wed, 24 Nov 2010 00:08:07 -0800 (PST) X-BeenThere: lojban@googlegroups.com Received: by 10.142.6.9 with SMTP id 9ls631557wff.3.p; Wed, 24 Nov 2010 00:08:06 -0800 (PST) Received: by 10.142.101.16 with SMTP id y16mr5341456wfb.42.1290586086414; Wed, 24 Nov 2010 00:08:06 -0800 (PST) Received: by 10.142.101.16 with SMTP id y16mr5341452wfb.42.1290586086127; Wed, 24 Nov 2010 00:08:06 -0800 (PST) Received: from chain.digitalkingdom.org (digitalkingdom.org [173.13.139.234]) by gmr-mx.google.com with ESMTP id n6si10209064wfl.3.2010.11.24.00.08.05; Wed, 24 Nov 2010 00:08:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.234 as permitted sender) client-ip=173.13.139.234; Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.72) (envelope-from ) id 1PLAOb-0005Vq-75 for lojban@googlegroups.com; Wed, 24 Nov 2010 00:08:05 -0800 Date: Wed, 24 Nov 2010 00:08:05 -0800 From: Robin Lee Powell To: lojban@googlegroups.com Subject: Re: [lojban] zoi-open, zoi-word, zoi-close MORPHOLOGY INTERFACE Message-ID: <20101124080805.GE9301@digitalkingdom.org> References: <20101123192947.GI10838@alice.local> MIME-Version: 1.0 In-Reply-To: <20101123192947.GI10838@alice.local> User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: rlpowell@digitalkingdom.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.234 as permitted sender) smtp.mail=rlpowell@digitalkingdom.org Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: lojban@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline On Tue, Nov 23, 2010 at 12:29:47PM -0700, .alyn.post. wrote: > In the lojban.peg.txt file: > > http://www.digitalkingdom.org/~rlpowell/hobbies/lojban/grammar/lojban.peg.txt > > There is a section on MORPHOLOGY INTERFACE. The rules zoi-open, > zoi-word, and zoi-close have embedded code in them: > > zoi-open <- any-word-pre inner-word &{ myAssign( new String(innerWordSEP2.toString()) ) } close-paren > > Is that intentional? Yes. zoi is 100% context-sensitive; it cannot be processed with anything short of a true CSG ( http://en.wikipedia.org/wiki/Context-sensitive_grammar ) as far as I can tell. As such, it needs code to work, in CFG or PEG. > I don't really understand what this section is doing, and whether it > is glue specific to RATS! or whether it is glue required for any > parser, and this is a RATS! implementation of it. The latter. The part you quoted means "store the word after zoi". The zoi-close bit means "only match if the stored word matches". This is how zoi works. > What is going on with stuff like this?: > > NORATS COI <- COI-word-pre inner-word close-paren close-paren > NORATS COI-word-pre <- " CMAVO=( COI=( " The morphology outputs stuff like this: text=( BRIVLA=( gismu=( klama ) ) spaces=( ) ) The rest of the grammar processes that. A bit of a grotesque hack, really; I was trying to give xorxes freedom to mess with the morphology as a seperate construct, and I didn't know about JSON or YAML at the time. -Robin -- http://singinst.org/ : Our last, best hope for a fantastic future. Lojban (http://www.lojban.org/): The language in which "this parrot is dead" is "ti poi spitaki cu morsi", but "this sentence is false" is "na nei". My personal page: http://www.digitalkingdom.org/rlp/ -- You received this message because you are subscribed to the Google Groups "lojban" group. To post to this group, send email to lojban@googlegroups.com. To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/lojban?hl=en.