From lojban+bncCPb8qKiJCxCqnJDwBBoEZnSxEQ@googlegroups.com Thu Jun 23 21:10:32 2011 Received: from mail-yx0-f189.google.com ([209.85.213.189]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1QZxiu-0007Fm-5R; Thu, 23 Jun 2011 21:10:32 -0700 Received: by yxa15 with SMTP id 15sf3057506yxa.16 for ; Thu, 23 Jun 2011 21:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:mime-version:date:in-reply-to :references:user-agent:x-http-useragent:message-id:subject:from:to :x-original-sender: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-transfer-encoding; bh=LZqvy/J6afUzSlqVo2z0wPnce4AEjY5qKbiPSfA5ayI=; b=tis3mpUfd3UQpFBYRzKJ3ZBNiifRZ0XBpml6AH7fqHj5rJ/mdG3cjuEgtUtyegcVP6 27pOCqtZpzgasdi5OMetn7bf1lUwr9/frhvXAYYAiofiP6PG2AzF15qJrzhhgBP2I47y B4Lc3Ro+dHDO34iQVjlQQ14sYzCmW1zzFKm2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:in-reply-to:references:user-agent :x-http-useragent:message-id:subject:from:to:x-original-sender :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-transfer-encoding; b=14jpR9O+4NGn5F1RFYDqu0jtRSV2vrrVSdMuUYv828bZBoOMtPFzvDsL8vWvkF6Ghu rbceAiQz3pboIN02uvkKbS3G2npjcBJTbrHwkxENTp7kUnmn153CN+Z3r2A02v3O5z9g zNDwa6cYRbja3UwvaQnL2SpFcDbbYVUGUsCDg= Received: by 10.90.74.2 with SMTP id w2mr32558aga.14.1308888618303; Thu, 23 Jun 2011 21:10:18 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.91.73.27 with SMTP id a27ls748128agl.3.gmail; Thu, 23 Jun 2011 21:10:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.91.45.17 with SMTP id x17mr311598agj.27.1308888617048; Thu, 23 Jun 2011 21:10:17 -0700 (PDT) Received: by d42g2000yqa.googlegroups.com with HTTP; Thu, 23 Jun 2011 21:10:17 -0700 (PDT) Date: Thu, 23 Jun 2011 21:10:17 -0700 (PDT) In-Reply-To: <20110623213048.GA3668@alice.local> References: <811b7e98-8667-40e4-a496-09df7b5704d8@k6g2000yqc.googlegroups.com> <20110623213048.GA3668@alice.local> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Message-ID: <8efc584f-bdce-4463-a526-27750c137d99@d42g2000yqa.googlegroups.com> Subject: [lojban] Re: Lojban interpreter From: mirhagk To: lojban X-Original-Sender: mirhagk@gmail.com 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-Transfer-Encoding: quoted-printable 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. 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". 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). 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) If you would like I can show you the source code, if you'd be willing to help me out a bit? 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 vimcu > 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. ie > > 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 am > > 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 Grou= ps "lojban" group. > > To post to this group, send email to lojban@googlegroups.com. > > To unsubscribe from this group, send email to lojban+unsubscribe@google= groups.com. > > For more options, visit this group athttp://groups.google.com/group/loj= ban?hl=3Den. > > -- > .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.