PEG confusion

21 views
Skip to first unread message

Frank

unread,
Jan 2, 2013, 3:58:26 PM1/2/13
to loj...@googlegroups.com
So, I'm a wee bit confused and I apologize if this was brought up before. Is there a "de facto" standard for the would-be PEG grammar of lojban? Is it .alyn.'s? Robin's? Are We going by the principle of "Anyone willing to 'roll Their own' can, if not should, do so and We'll sort out the differences later"?

Just curious.

.alyn.post.

unread,
Jan 2, 2013, 4:07:51 PM1/2/13
to loj...@googlegroups.com
I'd like mine to be the official one. It requires more work on my
end yet before I consider it in good enough shape to submit as a
proposal.

There are not substantive differences, right now, between
jbogenturfa'i and camxes. The files are different at the bit-level,
but the parser level produces the same result. Robin and I have
shared patches as errata have come up.

The grammars will diverge when I merge my magic-word work. I got
burned out on that effort last year and have been trying to restart
it. It is standing in the way of other work I'd also like to do.
So far life keeps intervening.

mi'e .alyn.

On Wed, Jan 02, 2013 at 03:58:26PM -0500, Frank wrote:
> So, I'm a wee bit confused and I apologize if this was brought up before.
> Is there a "de facto" standard for the would-be PEG grammar of lojban? Is
> it .alyn.'s? Robin's? Are We going by the principle of "Anyone willing to
> 'roll Their own' can, if not*should,*do so*and We'll sort out the
> differences later"?
> Just curious.
>
> --
> You received this message because you are subscribed to the Google Groups
> "lojban" group.
> To post to this group, send email to loj...@googlegroups.com.
> To unsubscribe from this group, send email to
> lojban+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/lojban?hl=en.

--
my personal website: http://c0redump.org/

Jonathan Jones

unread,
Jan 2, 2013, 4:27:12 PM1/2/13
to loj...@googlegroups.com
On Wed, Jan 2, 2013 at 2:07 PM, .alyn.post. <alyn...@lodockikumazvati.org> wrote:
I'd like mine to be the official one.  It requires more work on my
end yet before I consider it in good enough shape to submit as a
proposal.

There are not substantive differences, right now, between
jbogenturfa'i and camxes.  The files are different at the bit-level,
but the parser level produces the same result.  Robin and I have
shared patches as errata have come up.

The grammars will diverge when I merge my magic-word work.  I got
burned out on that effort last year and have been trying to restart
it.  It is standing in the way of other work I'd also like to do.
So far life keeps intervening.

You mean, because you'll /have/ magic-word parsing, which no other parser has as of yet?

mi'e .alyn.

On Wed, Jan 02, 2013 at 03:58:26PM -0500, Frank wrote:
>    So, I'm a wee bit confused and I apologize if this was brought up before.
>    Is there a "de facto" standard for the would-be PEG grammar of lojban? Is
>    it .alyn.'s? Robin's? Are We going by the principle of "Anyone willing to
>    'roll Their own' can, if not*should,*do so*and We'll sort out the
>    differences later"?
>    Just curious.
>
>    --
>    You received this message because you are subscribed to the Google Groups
>    "lojban" group.
>    To post to this group, send email to loj...@googlegroups.com.
>    To unsubscribe from this group, send email to
>    lojban+un...@googlegroups.com.
>    For more options, visit this group at
>    http://groups.google.com/group/lojban?hl=en.

--
my personal website: http://c0redump.org/

--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to loj...@googlegroups.com.
To unsubscribe from this group, send email to lojban+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.




--
mu'o mi'e .aionys.

.i.e'ucai ko cmima lo pilno be denpa bu .i doi.luk. mi patfu do zo'o
(Come to the Dot Side! Luke, I am your father. :D )

Robin Lee Powell

unread,
Jan 2, 2013, 5:05:30 PM1/2/13
to loj...@googlegroups.com
On Wed, Jan 02, 2013 at 02:27:12PM -0700, Jonathan Jones wrote:
> On Wed, Jan 2, 2013 at 2:07 PM, .alyn.post.
> <alyn...@lodockikumazvati.org>wrote:
>
> > I'd like mine to be the official one. It requires more work on
> > my end yet before I consider it in good enough shape to submit
> > as a proposal.
> >
> > There are not substantive differences, right now, between
> > jbogenturfa'i and camxes. The files are different at the
> > bit-level, but the parser level produces the same result. Robin
> > and I have shared patches as errata have come up.
> >
> > The grammars will diverge when I merge my magic-word work. I
> > got burned out on that effort last year and have been trying to
> > restart it. It is standing in the way of other work I'd also
> > like to do. So far life keeps intervening.
> >
>
> You mean, because you'll /have/ magic-word parsing, which no other
> parser has as of yet?

camxes most certainly *does* have magic word parsing:

rlpowell@stodi> echo 'mi klama lo nu do klama si si sutra' | camxes
text
sentence
|- CMAVO
| KOhA: mi
|- bridiTail3
|- BRIVLA
| gismu: klama
|- sumti6
|- CMAVO
| LE: lo
|- tanruUnit2
|- CMAVO
| NU: nu
|- BRIVLA
gismu: sutra

-Robin

Jonathan Jones

unread,
Jan 2, 2013, 5:08:50 PM1/2/13
to loj...@googlegroups.com
On Wed, Jan 2, 2013 at 3:05 PM, Robin Lee Powell <rlpo...@digitalkingdom.org> wrote:
On Wed, Jan 02, 2013 at 02:27:12PM -0700, Jonathan Jones wrote:
> On Wed, Jan 2, 2013 at 2:07 PM, .alyn.post.
> <alyn...@lodockikumazvati.org>wrote:
>
> > I'd like mine to be the official one.  It requires more work on
> > my end yet before I consider it in good enough shape to submit
> > as a proposal.
> >
> > There are not substantive differences, right now, between
> > jbogenturfa'i and camxes.  The files are different at the
> > bit-level, but the parser level produces the same result.  Robin
> > and I have shared patches as errata have come up.
> >
> > The grammars will diverge when I merge my magic-word work.  I
> > got burned out on that effort last year and have been trying to
> > restart it.  It is standing in the way of other work I'd also
> > like to do. So far life keeps intervening.
> >
>
> You mean, because you'll /have/ magic-word parsing, which no other
> parser has as of yet?

camxes most certainly *does* have magic word parsing:

Well, si is easy. IIRC, sa and su aren't working in jbosku or .camxes., and there are some magic word combos that aren't worked out either, like zo si (although I'm sure zo si is worked out to be: zo si = "si", zo si si = "".)
 
rlpowell@stodi> echo 'mi klama lo nu do klama si si sutra' | camxes
text
   sentence
   |- CMAVO
   |     KOhA: mi
   |- bridiTail3
      |- BRIVLA
      |     gismu: klama
      |- sumti6
         |- CMAVO
         |     LE: lo
         |- tanruUnit2
            |- CMAVO
            |     NU: nu
            |- BRIVLA
                  gismu: sutra

-Robin
--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to loj...@googlegroups.com.
To unsubscribe from this group, send email to lojban+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.

Robin Lee Powell

unread,
Jan 2, 2013, 5:21:34 PM1/2/13
to loj...@googlegroups.com
On Wed, Jan 02, 2013 at 03:08:50PM -0700, Jonathan Jones wrote:
> On Wed, Jan 2, 2013 at 3:05 PM, Robin Lee Powell <
> rlpo...@digitalkingdom.org> wrote:
>
> > On Wed, Jan 02, 2013 at 02:27:12PM -0700, Jonathan Jones wrote:
> > > On Wed, Jan 2, 2013 at 2:07 PM, .alyn.post.
> > > <alyn...@lodockikumazvati.org>wrote:
> > >
> > > > I'd like mine to be the official one. It requires more work on
> > > > my end yet before I consider it in good enough shape to submit
> > > > as a proposal.
> > > >
> > > > There are not substantive differences, right now, between
> > > > jbogenturfa'i and camxes. The files are different at the
> > > > bit-level, but the parser level produces the same result. Robin
> > > > and I have shared patches as errata have come up.
> > > >
> > > > The grammars will diverge when I merge my magic-word work. I
> > > > got burned out on that effort last year and have been trying to
> > > > restart it. It is standing in the way of other work I'd also
> > > > like to do. So far life keeps intervening.
> > > >
> > >
> > > You mean, because you'll /have/ magic-word parsing, which no other
> > > parser has as of yet?
> >
> > camxes most certainly *does* have magic word parsing:
> >
>
> Well, si is easy. IIRC, sa and su aren't working in jbosku or .camxes., and
> there are some magic word combos that aren't worked out either, like zo si
> (although I'm sure zo si is worked out to be: zo si = "si", zo si si = "".)

The problem is that the CLL's explanations of magic words *cannot*
be reconciled; there are direct contradictions. "su" is, in fact,
working, and while sa isn't perfect, it works too:

rlpowell@stodi> echo 'mi klama lo klama sa le sutra' | camxes
text
sentence
|- CMAVO
| KOhA: mi
|- bridiTail3
|- BRIVLA
| gismu: klama
|- sumti6
|- CMAVO
| LE: le
|- BRIVLA
gismu: sutra

http://www.lojban.org/tiki/Magic+Words encodes the decisions I made
in camxes; in some places camxes doesn't actually do what that page
says, and in some places even with how detailed that page tried to
be it's *still* incomplete. That's why aisa is working on it.

-Robin

la gleki

unread,
Jan 3, 2013, 1:02:49 AM1/3/13
to loj...@googlegroups.com
Sorry for stupid questions (I haven't looked at the code). Is camxes based on initial BNF parser, just adapted?
Or was it written from scratch?

Robin Lee Powell

unread,
Jan 3, 2013, 2:13:43 PM1/3/13
to loj...@googlegroups.com
It's not just rewritten from scratch, it's a completely different
parsing abstraction. The parser table started with the EBNF,
though.

-Robin

On Wed, Jan 02, 2013 at 10:02:49PM -0800, la gleki wrote:
> Sorry for stupid questions (I haven't looked at the code). Is camxes based
> on initial BNF parser, just adapted?
> Or was it written from scratch?
>
>
> On Thursday, January 3, 2013 2:21:34 AM UTC+4, Robin Powell wrote:
> >
> > On Wed, Jan 02, 2013 at 03:08:50PM -0700, Jonathan Jones wrote:
> > > On Wed, Jan 2, 2013 at 3:05 PM, Robin Lee Powell <
> > > rlpo...@digitalkingdom.org <javascript:>> wrote:
> > >
> > > > On Wed, Jan 02, 2013 at 02:27:12PM -0700, Jonathan Jones wrote:
> > > > > On Wed, Jan 2, 2013 at 2:07 PM, .alyn.post.
> > > > > <alyn...@lodockikumazvati.org <javascript:>>wrote:
> --
> You received this message because you are subscribed to the Google Groups "lojban" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/lojban/-/eTfCbDn0Fs0J.
> To post to this group, send email to loj...@googlegroups.com.
> To unsubscribe from this group, send email to lojban+un...@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.
.i ko na cpedu lo nu stidi vau loi jbopre .i danfu lu na go'i li'u .e
lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e
lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u
Reply all
Reply to author
Forward
0 new messages