[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban] questions about peg grammar



Ok, so I'm trying to get a feel for how the peg grammar handles lujvo so that I can make my parser be as close to the real deal as possible (i.e. not a sloppy hack).  I have a question though.  I think the relevant section that I want to understand is the following, correct?

;-----------------------------------------------------------------------------------------------------------------------------------------
lujvo <- !gismu !fuhivla !cmavo initial-rafsi* brivla-core

brivla-core <- fuhivla / gismu / CVV-final-rafsi / stressed-initial-rafsi short-final-rafsi 

stressed-initial-rafsi <- stressed-extended-rafsi / stressed-y-rafsi / stressed-y-less-rafsi

initial-rafsi <- extended-rafsi / y-rafsi / !any-extended-rafsi y-less-rafsi

any-extended-rafsi <- fuhivla / extended-rafsi / stressed-extended-rafsi
;-----------------------------------------------------------------------------------------------------------------------------------------

Now, I may be reading this incorrectly, but wouldn't this mean that an initial rafsi followed by a fuhivla would be considered a lujvo?  i.e. {bracidrspageti}?


--
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@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.