From lojban+bncCLr6ktCfBBCM95PwBBoEl2SmGg@googlegroups.com Fri Jun 24 14:03:31 2011 Received: from mail-pz0-f61.google.com ([209.85.210.61]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1QaDX5-0005do-4C; Fri, 24 Jun 2011 14:03:30 -0700 Received: by pzk4 with SMTP id 4sf1870073pzk.16 for ; Fri, 24 Jun 2011 14:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:date:from:to:subject :message-id:mail-followup-to:references:mime-version:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-disposition:content-transfer-encoding; bh=xJnERGOmG2U6KULDwuUvvh1loS78H6iTMreYlm3wXiU=; b=4aejMrFeWVvYaBpPh0pUM5Kt0LKaTWnSdmi3oXbambYEfJ5QEOKakfEB5AWcNVGfb/ N4E7c96kW4vsfumML6R+muuUI88pPaveFsUyvpGXh4/hZTbQ8FDtGd3I30OHzO93l2Gr 8eaHApRzyb1nmTKlJcN9YvWbhJd2yacureiK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id :mail-followup-to:references:mime-version:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-disposition:content-transfer-encoding; b=X3JQbKOG15V+1BzJQYvluGq7Um2rS3P9C4RPfEP3DSjYJSyYaQRiKZpv8+9MrD7gQ2 3toBeBuLeyY8Xyf1Yn/ZMrp9WMvh4MXxiCtb/pU95N1v5Q/h6aduVz/XhDTIk75uzylt KWc8glEOJrO+3eFN8gzg6AyVF9onDB3Lwk2Ww= Received: by 10.68.40.97 with SMTP id w1mr304698pbk.8.1308949388950; Fri, 24 Jun 2011 14:03:08 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.68.31.67 with SMTP id y3ls883783pbh.3.gmail; Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received: by 10.68.36.66 with SMTP id o2mr682527pbj.1.1308949387534; Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received: by 10.68.36.66 with SMTP id o2mr682526pbj.1.1308949387514; Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received: from mail-pv0-f169.google.com (mail-pv0-f169.google.com [74.125.83.169]) by gmr-mx.google.com with ESMTPS id f8si6432840pbc.0.2011.06.24.14.03.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.169 is neither permitted nor denied by best guess record for domain of alanpost@sunflowerriver.org) client-ip=74.125.83.169; Received: by pvc12 with SMTP id 12so2363897pvc.0 for ; Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received: by 10.68.5.68 with SMTP id q4mr2030248pbq.117.1308949387311; Fri, 24 Jun 2011 14:03:07 -0700 (PDT) Received: from sunflowerriver.org (173-10-243-253-Albuquerque.hfc.comcastbusiness.net [173.10.243.253]) by mx.google.com with ESMTPS id o2sm2318493pbj.1.2011.06.24.14.03.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 14:03:06 -0700 (PDT) Date: Fri, 24 Jun 2011 15:03:02 -0600 From: ".alyn.post." To: lojban@googlegroups.com Subject: Re: [lojban] Re: Lojban interpreter Message-ID: <20110624210302.GH5520@alice.local> Mail-Followup-To: lojban@googlegroups.com References: <811b7e98-8667-40e4-a496-09df7b5704d8@k6g2000yqc.googlegroups.com> <20110623213048.GA3668@alice.local> <8efc584f-bdce-4463-a526-27750c137d99@d42g2000yqa.googlegroups.com> <20110624160253.GD5520@alice.local> <736e25d5-4067-401e-b32a-d8e2ede5d3d1@g12g2000yqd.googlegroups.com> <20110624164007.GE5520@alice.local> <69d29711-c811-4747-bae2-48f71730d4cc@x1g2000yqa.googlegroups.com> Mime-Version: 1.0 In-Reply-To: <69d29711-c811-4747-bae2-48f71730d4cc@x1g2000yqa.googlegroups.com> X-Original-Sender: alyn.post@lodockikumazvati.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.83.169 is neither permitted nor denied by best guess record for domain of alanpost@sunflowerriver.org) smtp.mail=alanpost@sunflowerriver.org Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: X-Google-Group-Id: 1004133512417 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 Content-Transfer-Encoding: quoted-printable I've got a work-in-progress page on Lojban's grammar here: http://www.lojban.org/tiki/Grammar It links to the page specifically about the PEG implementation of that grammar: http://www.lojban.org/tiki/PEG Which you can from there find one (of a couple floating around) grammar files (shameless self-promotion here, this is my own working copy of the PEG grammar): http://www.lojban.org/tiki/jbogentufa%27i the sumti-6 rule in part describes parsing LA clauses. It is these lines in gerna.peg: ... / LA-clause free* relative-clauses? CMENE-clause+ free* / ( LA-clause / LE-clause ) free* sumti-tail KU-clause? free* ... Which of course references several other lines. In some sense, though, asking how to parse LA is the wrong question. There isn't a need to parse LA in isolation from Lojban's grammar, you parse LA incidentally to parsing Lojbanic text. Be well, -Alan On Fri, Jun 24, 2011 at 01:51:45PM -0700, mirhagk wrote: > I do very much appreciate your help, and I actually have heard of, and > read part of the Dragon book before. >=20 > I know how to parse sort of, and I just don't know how to parse lojban > specifically. For instance how is la parsed specifically. >=20 > On Jun 24, 12:40=A0pm, ".alyn.post." > wrote: > > You might really enjoy reading the "Dragon Book," formally called > > "Principles of Compiler Design." =A0It is the classic textbook on > > compiler design. > > > > In the last several years, it has unfortunately become a little > > dated, but understanding the material there is necessary for reading > > any of the recently published papers on the subject, and I'm not > > aware of a book that is a candidate to replace this one. =A0There > > way well be, I haven't surveyed the field. > > > > If formal coverage of the subject is not to your taste, there exist > > now a variety of short books and articles on compiler design, many > > more than used to be available. =A0I'm sure you'll be able to find > > something helpful that discussed the topic in a way you find useful. > > > > Please take my e-mails in the spirit of providing guideposts, rather > > that dictums. =A0I hope in my suggestions that you will have an easier > > time accomplishing your goals, but my suggestions may not be the > > journey you want to take. =A0If your "Lojban parsing is terrible" fix > > it when it bugs you, not when it bugs the armchair generals. > > > > For C#, you have some really nice parsing options, the most popular > > being IronMeta. =A0It may provide most of the skeleton you need, and > > you can focus on the Lojbanic pieces of your problem. =A0That project > > is also well documented, in that you might be able to go from no > > parsing experience to getting stuff working and learn as you go. > > > > .i a'o do selpu'a lo nu finti lo do vi samtci > > .i mu'o mi'e .alyn. > > > > > > > > > > > > > > > > > > > > On Fri, Jun 24, 2011 at 09:16:15AM -0700, mirhagk wrote: > > > K I know that I'm parsing it terribly, that's the thing I want to > > > change. And basically I want to create a program where you can talk t= o > > > a computer and it will execute those commands, but in plain english > > > (rather plain lojban). With english it's entirely impossible because > > > of the millions of ambiguities but lojban clears most of those up, an= d > > > serves as the perfect language for this task. > > > > > And if your asking why, I'll give you a 3 part answer: > > > 1. To prove to people how powerful lojban can be in conversing and > > > interfacing with a computer > > > 2. To further my understanding of interpreters/compilers > > > 3. To develop the absolute simplest programming language. > > > > > So what help I would love from you guys is on how to properly parse > > > the language, because I know I'm doing it wrong, I don't mean to, I > > > just don't know the right way. And yes this project will be open > > > source, and I will convert it to C++ eventually, but C# is a much > > > simpler language for the task right now. > > > > > -- > > > You received this message because you are subscribed to the Google Gr= oups "lojban" group. > > > To post to this group, send email to lojban@googlegroups.com. > > > To unsubscribe from this group, send email to lojban+unsubscribe@goog= legroups.com. > > > For more options, visit this group athttp://groups.google.com/group/l= ojban?hl=3Den. > > > > -- > > .i ma'a lo bradi ku penmi gi'e du >=20 > --=20 > 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@googlegr= oups.com. > For more options, visit this group at http://groups.google.com/group/lojb= an?hl=3Den. >=20 --=20 .i ma'a lo bradi ku penmi gi'e du --=20 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@googlegrou= ps.com. For more options, visit this group at http://groups.google.com/group/lojban= ?hl=3Den.