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

Re: [lojban] Yet another PEG question ...



The '()' isn't superfluous, but it is a little strange.  It's
matching the empty string, there.

In the PEG grammar for jbogenturfa'i, that production is rewritten
as:

  rp-expression-tail <- ( rp-expression operator rp-expression-tail )?

Though I haven't finished testing it.

-Alan

On Mon, Jul 18, 2011 at 08:38:58PM -0400, Frank wrote:
> ki'e .i What of "rp-expression-tail <- rp-expression operator
> rp-expression-tail / ()"? The '()' seems to be superfluous, yes?
> 
> On 18 July 2011 12:56, Robin Lee Powell <rlpowell@digitalkingdom.org> wrote:
> > That's ZOI stuff; that's actual variables for Java code; see
> > rats/lojban.java
> >
> > ZOI cannot be handled by straight PEG or CFG; it requires code hooks
> > or a true CSG as far as we can tell.
> >
> > -Robin
> >
> > On Mon, Jul 18, 2011 at 10:02:45AM -0400, Frank wrote:
> >> I also see "innerWordSEP2" and "innerWordSEP3" in the grammar file
> >> and not in the morphology one but do not seem to be able to find a
> >> definition. What are these terms, if Anyone remembers? (I know how
> >> easy it can be to code something and then forget why One did
> >> that.)
> >>
> >> mi'e xuinkrbin.
> >>
> >> On 17 July 2011 13:12, .alyn.post. <alyn.post@lodockikumazvati.org> wrote:
> >> > On Sun, Jul 17, 2011 at 11:10:41AM -0600, .alyn.post. wrote:
> >> >> 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.
> >> >>
> >> >
> >> > I'm sorry, I was reading my e-mail in reverse order, and I see you
> >> > have answered this question.
> >> >
> >> > -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.
> >> >
> >> >
> >>
> >> --
> >> 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.
> >>
> >
> > --
> > http://singinst.org/ :  Our last, best hope for a fantastic future.
> > Lojban (http://www.lojban.org/): The language in which "this parrot
> > is dead" is "ti poi spitaki cu morsi", but "this sentence is false"
> > is "na nei".   My personal page: http://www.digitalkingdom.org/rlp/
> >
> > --
> > 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.
> >
> >
> 
> -- 
> 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.
> 

-- 
.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.