[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Yet another PEG question ...
On Sun, Jul 17, 2011 at 01:41:26PM -0300, Jorge Llambías wrote:
> On Sun, Jul 17, 2011 at 12:44 PM, Frank <frankdmartinez@gmail.com> wrote:
> > NORATS CMAVO-word-pre <- " CMAVO=( "
> > NORATS CMAVO <- CMAVO-word-pre inner-word close-paren
> > /If/, and this is a big 'if', I understand correctly, such lines mean
> > a parser attempting to find a cmavo in a portion of lojban text should
> > look for (literal) "CMAVO=(" followed by some other text followed by a
> > literal ")", which would suggest some form of pre-interpretation of
> > said lojban text before parsing. But how could such be? Would not the
> > purpose of the parser be to perform such interpretation?
>
> In his implementation of the PEG, Robin divided the grammar into two
> stages, morphology and syntax. The output of the morphology stage
> produced something containing such things as "CMAVO=( da )" and then
> the syntax part worked with that output. There's no need to do this
> other than resolving some practical concern of that implementation.
> The official PEG (when we have it) should not have such things.
>
jbgenturfa'i does not include these productions, and instead "more
directly" interfaces with the morphology by treating the morphology
and grammar as a single PEG grammar. The behavior above was so
Robin and xorxes could work and debug together; and perhaps for
other reasons. Exactly as xorxes said, they aren't needed and are
an artifact of camxes.
Will you talk a little about what you're doing? So far your
questions are exactly the ones I asked, when I started using camxes,
and the answers I got then are now included in jbogenturfa'i.
-Alan
--
.i ma'a lo bradi cu penmi gi'e du
--
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.