From lojban+bncCLr6ktCfBBC16pLwBBoErayFQg@googlegroups.com Fri Jun 24 09:03:14 2011 Received: from mail-pw0-f61.google.com ([209.85.160.61]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1Qa8qc-0005Hm-SD; Fri, 24 Jun 2011 09:03:14 -0700 Received: by pwj8 with SMTP id 8sf1810105pwj.16 for ; Fri, 24 Jun 2011 09:03:05 -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=qcNWugPpimbRbFxiFSiS9Y0souP37pSXqCQoAWX1yNo=; b=s99hgd76ZVsJA66qbOREsCkdSijn84t0OjJ4qL7Vxs/6NXKp0CBx+PSO3FQsdqFfc3 6nkkb0oxkE1fHtiy3/qOMKdJNIpi1hde0hbrQU2EiZ6ToxvhdxndiC7LJXvBgvg3PIPf YGuaWvZGMBCYTDKOyj46Pbtk0GJVJfdwuCLp4= 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=unwV0npB9sNsM36BbslCjWIygWzD4Ce6YpBCPaunpJ/TwaWPu688fqt9JE4pjXZbvr 68iH80NJlbynb20K0JjdiHke5QC7/Tt57hXOhGxtAS0piZ3OBx/4Z5fYgoMvzgPHL4Ir jXek10DobggrPFnBy1abKUArxGg3XLpNaijGA= Received: by 10.68.24.199 with SMTP id w7mr286497pbf.49.1308931381079; Fri, 24 Jun 2011 09:03:01 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.68.59.41 with SMTP id w9ls829030pbq.1.gmail; Fri, 24 Jun 2011 09:03:00 -0700 (PDT) Received: by 10.68.16.198 with SMTP id i6mr638451pbd.37.1308931380115; Fri, 24 Jun 2011 09:03:00 -0700 (PDT) Received: by 10.68.16.198 with SMTP id i6mr638450pbd.37.1308931380104; Fri, 24 Jun 2011 09:03:00 -0700 (PDT) Received: from mail-pw0-f47.google.com (mail-pw0-f47.google.com [209.85.160.47]) by gmr-mx.google.com with ESMTPS id c10si5960431pbi.2.2011.06.24.09.02.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 09:02:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of alanpost@sunflowerriver.org) client-ip=209.85.160.47; Received: by pwi1 with SMTP id 1so2038126pwi.6 for ; Fri, 24 Jun 2011 09:02:58 -0700 (PDT) Received: by 10.68.32.137 with SMTP id j9mr1746260pbi.2.1308931378275; Fri, 24 Jun 2011 09:02:58 -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 x2sm2149501pbn.45.2011.06.24.09.02.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Jun 2011 09:02:56 -0700 (PDT) Date: Fri, 24 Jun 2011 10:02:53 -0600 From: ".alyn.post." To: lojban@googlegroups.com Subject: Re: [lojban] Re: Lojban interpreter Message-ID: <20110624160253.GD5520@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> Mime-Version: 1.0 In-Reply-To: <8efc584f-bdce-4463-a526-27750c137d99@d42g2000yqa.googlegroups.com> X-Original-Sender: alyn.post@lodockikumazvati.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.47 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 On Thu, Jun 23, 2011 at 09:10:17PM -0700, mirhagk wrote: > yeah probably messed up cusku. LOL my bad, but like I said it's about > 2 days old. The parser is very bad/basic right now. la is simply > parsed by finding the last period before the next la, and li is parsed > by justing getting numbers until they aren't numbers anymore. Once all > those are gone, then only the selbri is left. >=20 A lot of effort has been put into parsing Lojban. It is the most formalized thing about Lojban there is. I would really recommend you don't reimplement the grammar yourself, but use the PEG grammar that Robin put so much work into producing instead. > dunda means x1 gives x2 to x3 does it not? So x1 would be losing x2 > and x3 would be gaining x2. IE x1-=3Dx2; x3+=3Dx2; Now normally we are of > course talking objects, not values, but the language is supposed to > work as a natural way to tell a computer what to do (not math based). > If you were telling a computer to transfer $5 from one account to the > other you wouldn't say "subtract $5 from account 1, and add $5 to > account 2" you'd say "take $5 from account 1 to account 2". Even if > you were only talking one account you'd say "take $5 from that > account" not "subtract $5 from that account". >=20 It's your language. ;-) > I like that the language works in a multipurpose for each command kind > of way, like cusku meaning input and output and dunda meaning addition > and subtraction (and many other things depending on what the arguments > are, ie strings or lists or objects etc). >=20 > Btw in terms of do and mi, mi is the computer/program and do is the > user. So when it says do cusku la var. It means read a value from the > user and store it into var. (the mi is the default implied sumti for > when it's zo'e) >=20 > If you would like I can show you the source code, if you'd be willing > to help me out a bit? >=20 I only work on open source projects, though if you were to open source this project I'm still not very likely to help. I don't have any way to compile or run C# code, and these days no one even has to pay me to write C++, I just get to pretend it doesn't exist. I don't understand what you're trying to accomplish with this project, I'm sorry to say. I don't see the vision yet. I understand *what* you're doing, but I don't understand *why*. -Alan > On Jun 23, 5:30=A0pm, ".alyn.post." > wrote: > > I think you want 'cusku' when you say 'cuska.' > > > > Is the pro-sumti for the program 'do'? =A0You seem to use than > > sometimes when executing a 'cuska' expression. > > > > It's not clear to me what you mean by 'dunda.' =A0I'm having trouble > > reading your example programs that use it. =A0Lojban has jmina and vimc= u > > that can mean mathematical addition and subtraction. =A0I don't > > understand dunda to operate at the level of abstraction it seems to > > in your program. > > > > How are you parsing your Lojban? > > > > -Alan > > > > > > > > > > > > > > > > > > > > On Wed, Jun 22, 2011 at 06:41:46AM -0700, mirhagk wrote: > > > I am currently working on a lojban interpreter called "do sampla ma" > > > and what it aims to do is take pure, unaltered lojban bridi and > > > execute them as good (obviously not every lojban bridi would be valid > > > code, but all excuted code would be perfectly regular lojban bridi. i= e > > > the comments for the program is literally the program itself). Now > > > everyone here already knows the power of lojban, and the simplicity > > > for a computer to parse it, so I won't go on and on about that, but I > > > just want to say that it's in it's VERY early stages (like just > > > started the other day) but it already looks pretty cool. > > > > > If you want to check it out you can go here: > > >http://eldidip.weebly.com/lojban.html > > > > > The only thing is that I do not know alot of lojban to be honest. I a= m > > > a good programmer, and I can make this project with ease, and I'm > > > trying to learn lojban more, but as it stands I'm a total n00b. I > > > don't want to mess up any simple grammar, and I would like some tips > > > about how to best parse the lojban text. If anyone is interested/ > > > willing to help please email me and I will fill you in a little bit > > > more. > > > > > mirh...@gmail.com > > > > > -- > > > 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.