[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parsing lujvo
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