[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Yet another PEG question ...
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.
mu'o mi'e xorxes
--
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.