Received: from mail-qk0-f187.google.com ([209.85.220.187]:34627) by stodi.digitalkingdom.org with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.80.1) (envelope-from ) id 1YgsMp-0001mB-Jd; Sat, 11 Apr 2015 03:10:25 -0700 Received: by qkbw1 with SMTP id w1sf64183388qkb.1; Sat, 11 Apr 2015 03:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type: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; bh=NMbaL29iXRkr0T4DzmGZGEBChEpUevx+nLAVNoJzIQs=; b=MtN+F8z0edw/mAL7ba6qVjrqoX15V4s7UEnc/3+uvzeFyUmCrjhlgHRSIMEhrOb7cG Q4xTsCEECnkATUb/lmpY34sLjDpkgGlYsCgW/VylWK2pEOO3fDBt4U8hsOYVdEYZ4lUN TTEVBrWGyyYTsJCOn+5GqRdwnUpjE7OinMATNoi+U59Ubia2ZU29DRprj3gslSWi38R0 GdFhm2h5TWbzPaGahpKbelpxlqDL6ZK7h7v+UGMMYf66M748eXp35TvQL5Y0YMf1Zac2 aIWMTPEpSPPOJDlQtk+Gs4zNrMyxLH9P4cAEsKJyZtyRJkDdPgASIw7foX9L5RVmNI9Q vz4Q== X-Received: by 10.182.104.65 with SMTP id gc1mr42067obb.16.1428747017208; Sat, 11 Apr 2015 03:10:17 -0700 (PDT) X-BeenThere: bpfk-list@googlegroups.com Received: by 10.182.230.201 with SMTP id ta9ls134834obc.96.gmail; Sat, 11 Apr 2015 03:10:16 -0700 (PDT) X-Received: by 10.182.148.164 with SMTP id tt4mr6734205obb.30.1428747016937; Sat, 11 Apr 2015 03:10:16 -0700 (PDT) Received: from eastrmfepo101.cox.net (eastrmfepo101.cox.net. [68.230.241.213]) by gmr-mx.google.com with ESMTP id kt5si652505qcb.3.2015.04.11.03.10.16 for ; Sat, 11 Apr 2015 03:10:16 -0700 (PDT) Received-SPF: none (google.com: lojbab@lojban.org does not designate permitted sender hosts) client-ip=68.230.241.213; Received: from eastrmimpo305 ([68.230.241.237]) by eastrmfepo101.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20150411101016.IEAE18129.eastrmfepo101.cox.net@eastrmimpo305> for ; Sat, 11 Apr 2015 06:10:16 -0400 Received: from [192.168.0.102] ([72.209.242.63]) by eastrmimpo305 with cox id EaAG1q0011Nn1eG01aAGBp; Sat, 11 Apr 2015 06:10:16 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020204.5528F308.00E4,ss=1,re=0.001,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=PMvRD4WC c=1 sm=1 a=sOxKrxY1QYXBcFVBIkZEyQ==:17 a=JJ1bDv3c7YsA:10 a=IkcTkHD0fZMA:10 a=8YJikuA2AAAA:8 a=Owjnc9coFRTvRPfFEmYA:9 a=QEXdDO2ut3YA:10 a=sOxKrxY1QYXBcFVBIkZEyQ==:117 X-CM-Score: 0.00 Message-ID: <5528F333.4060602@lojban.org> Date: Sat, 11 Apr 2015 06:10:59 -0400 From: Bob LeChevalier User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: bpfk-list@googlegroups.com Subject: Re: [bpfk] Several nested giheks in bridi tail in PEG References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Original-Sender: lojbab@lojban.org X-Original-Authentication-Results: gmr-mx.google.com; spf=none (google.com: lojbab@lojban.org does not designate permitted sender hosts) smtp.mail=lojbab@lojban.org Reply-To: bpfk-list@googlegroups.com Precedence: list Mailing-list: list bpfk-list@googlegroups.com; contact bpfk-list+owners@googlegroups.com List-ID: X-Google-Group-Id: 972099695765 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -1.9 (-) X-Spam_score: -1.9 X-Spam_score_int: -18 X-Spam_bar: - On 4/11/2015 5:03 AM, Gleki Arxokuna wrote: > The "official" PEG has this: > > bridi-tail <- bridi-tail-1 (gihek stag? KE-clause free* bridi-tail > KEhE-clause? free* tail-terms)? > SPACE bridi-tail-sa <- bridi-tail-start (term / !bridi-tail-start > (sa-word / SA-clause !bridi-tail-start ) )* SA-clause &bridi-tail > > bridi-tail-start <- ME-clause / NUhA-clause / NU-clause / NA-clause > !KU-clause / NAhE-clause !BO-clause / selbri / tag bridi-tail-start / > KE-clause bridi-tail-start / bridi-tail > > bridi-tail-1 <- bridi-tail-2 (gihek !(stag? BO-clause) !(stag? > KE-clause) free* bridi-tail-2 tail-terms)* > > bridi-tail-2 <- bridi-tail-3 (gihek stag? BO-clause free* bridi-tail-2 > tail-terms)? > > > Could you please provide examples where gihek in bridi-tail, > bridi-tail-1 and bridi-tail-2 rules matches? I just thought that only > one type of gihek in bridi tails was possible but PEG tells me otherwise > so I want to distinguish them when I face them in a real text. I can't answer any question about the whys and wherefores of the PEG grammar since I don't understand PEG, but I probably could do so for the corresponding YACC grammar, if you cannot get answers. I'm guessing from the above that you are wondering why the multiple bridi-tail rules exist. In the YACC equivalent, the nested rules ensure that GEK (forethought connectives) group more tightly than any afterthought connectives, that GIhEK_BO groups next, then plain GIhEKs, and then GIhEK_KE, if more than one form occurs in a complex sentence. It is probably rather unlikely that people would mix grouping types, but the YACC grammar was designed to handle a lot of weird things that might cause ambiguity, even if we thought they weren't likely. broda le xekri gi'ake brode le blanu gi'o brodi le blabi gi'ubo ganai brodo le xunre gi brodu le pelxu seems to pass the official parser and uses all of the constructs. Hope this is relevant. lojbab -- You received this message because you are subscribed to the Google Groups "BPFK" group. To unsubscribe from this group and stop receiving emails from it, send an email to bpfk-list+unsubscribe@googlegroups.com. To post to this group, send email to bpfk-list@googlegroups.com. Visit this group at http://groups.google.com/group/bpfk-list. For more options, visit https://groups.google.com/d/optout.