On Tue, Jan 7, 2014 at 12:27 PM, Felipe Gonçalves Assis <felipeg.assis@gmail.com> wrote:
In
http://users.digitalkingdom.org/~rlpowell/hobbies/lojban/grammar/lojban.peg.txt
(where can I find the file used by camxes?)
There is this rule
term-1 <- sumti / ( !gek (tag / FA-clause free*) (sumti / KU-clause? free*) ) / termset / NA-clause KU-clause free*
I don't have a firm grasp of formal grammars, so correct me if I am wrong.
1. This rule is relevant.
2. If we make the KU-clause mandatory, instead of optional, my mental grammar is realized.
term-1 <- sumti / ( !gek (tag / FA-clause free*) (sumti / KU-clause free*) ) / termset / NA-clause KU-clause free*
That's one way of dealing with it, although for my taste it has the disadvantage of making a terminator non-elidable, which is exceptional. Also, because of the silly restrictions on compound tags, you would have to be very aware of which tags can be combined without ku and which strings of tags would require ku insertions to make them work.
The way I would rather do it is:term-1 <- sumti / ( !gek (tag !selbri-1 / FA-clause free*) (sumti / KU-clause? free*) ) / termset / NA-clause KU-clause free*which means that the tag will not be absorbed as a term if it's directly followed by a selbri-1 (in which case it will be absorbed by the selbri rule),