Received: from spooler by stryx.demon.co.uk (Mercury/32 v2.01); 11 May 98 20:56:08 +0000 Return-path: Received: from punt-11.mail.demon.net (194.217.242.34) by stryx.demon.co.uk (Mercury/32 v2.01); 11 May 98 20:56:03 +0000 Received: from punt-1.mail.demon.net by mailstore for ia@stryx.demon.co.uk id 894826863:10:28674:0; Sun, 10 May 98 19:01:03 GMT Received: from listserv.cuny.edu ([128.228.100.10]) by punt-1.mail.demon.net id aa1115337; 10 May 98 19:00 GMT Received: from listserv (listserv.cuny.edu) by listserv.cuny.edu (LSMTP for Windows NT v1.1b) with SMTP id <2.FFFE189C@listserv.cuny.edu>; 10 May 1998 15:02:16 -0400 Date: Sun, 10 May 1998 21:58:28 +0300 Reply-To: veion@XIRON.PC.HELSINKI.FI Sender: Lojban list From: Veijo Vilva Subject: Re: Parsing lujvo X-To: lojban@cuvmb.cc.columbia.edu To: Multiple recipients of list LOJBAN Message-ID: <894826857.1115337.0@listserv.cuny.edu> X-PMFLAGS: 33554560 7 Content-Length: 2326 Lines: 101 George Foot wrote: > coi rodo > > I'd like to know whether or not a machine parser for lujvo already exists. > I think it's quite a useful thing to have; it would convert a lujvo into > its component rafsi, and list the meanings of the rafsi. > I once wrote a complete lexer in Turbo Pascal [stuff deleted] > > tavta'atavlytavla > Given the above input the lexer produces tavta'atavlytavla / tavta'atavlytavla : tav = tavla > talk -- illegal medial consonant pair : vt ta'a = tavla > talk tavla > talk tavla > talk --- Given a more complex input (from the old ckafybarja postings): ni'o le ckafybarja cu te vanci * ni'o > new topic * le > the (described as) / ckafybarja : ckafi > coffee barja > bar - cu * te > 3rd conversion of * vanci > evening --- .i fadni ke savru je snusna . i * fadni > ordinary * ke > start grouping * savru > noise * je > (tanru) and / snusna : snu = casnu > discuss sna = sanli > stand --- .i fo'a goi la xiron. zvati ke viska je tirna . i * fo'a > it#6 * goi > anaphora assign * la > that named N xiron * zvati > at * ke > start grouping * viska > see * je > (tanru) and * tirna > hear --- .i fo'a jisygau le poi se cliva re le velbarja ku'o jubme . i * fo'a > it#6 / jisygau : jis = jinsa > clean gau = gasnu > do * le > the (described as) * poi > (restrictive) which * se > 2nd conversion of * cliva > leave * re > 2 * le > the (described as) / velbarja : vel = ve > 4th conversion of barja > bar * ku'o > end relative clause * jubme > table --- I have still got the exe-file but couldn't find the sources. co'o mi'e veion