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

[lojban] Re: Where is the latest/official PEG grammar?





Em terça-feira, 14 de abril de 2020 18:34:47 UTC+3, scope845hlang343jbo@icebubble.org escreveu:
Gleki Arxokuna <gleki.is.my.name@gmail.com> writes:

> PEG has its own deficiencies.

What deficiencies?

> True. PEG won't put us forward significantly.

Why wouldn't it?  Having a complete specification of the language seems
like it would be a HUGE step forward, to me.  From PEG, it would be but
a short distance to having a working, fully-correct parser.

>> Maybe that's what we're waiting for?  A proof that the PEG grammar is
>> backward-compatible with the YACC?  
>
>
> Its not backward compatible by definition.

It would have to be.  Otherwise, currently (and historically)
grammatical Lojban wouldn't be grammatical under the new (PEG
specification of the) grammar.  Am I wrong?

>> IfIf so, the second half of Bryan
>> Ford's thesis paper on PEGs describes how to transform parsing
>> expressions into other forms which could be compared with the YACC.
>
>
> Transformation doesn't necessarily imply equivalence.

No, but it would render the PEG in a form which could be *compared* to
the YACC.  If you cut-out the morphology rules,

You need to cut out much more. Compare how many lines the BNF grammar has. One can learn it by heart. Now compare to camxes grammars. 
and allow for changes
for handling elidable terminators and metalinguistic erasers, the
remainder (the bulk) of the grammar should be formally equivalent to the
current YACC grammar.300.  That would prove that the YACC and PEG parse
essentially the same language.  Given such a proof, is there any reason
why such a PEG would NOT be accepted as the new baseline grammar?

Because PEG formalism doesn't allow checking for ambiguities. E.g. PEG is unambiguous even if you add to it rules and subrules that would never match. 

But seriously PEG/CFG are not powerful enough even by BPFK standards (see BPFK pages in the wiki)

--
You received this message because you are subscribed to the Google Groups "lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lojban/331e6b40-73bc-4597-bccd-2e7b1028cba7%40googlegroups.com.