[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] peg grammar parse tree cmavo
I think it would be nice to have "cmavo" in the parse tree for all the
cmavo. This can *easily* be accomplished by changing, for instance,
"A-pre <- pre-clause A spaces?"
to
"A-pre <- pre-clause &A CMAVO spaces?"
Alternately, the same could be done in the morphology, by changing
"A <- &cmavo (etc etc)"
to
"A <- &(etc etc) cmavo"
>>From a layout standpoint, I think it would make more sense to have it
in the morphology. But either might have a performance penalty. But
there's another option, too.
Rats has a feature, (and I could easily add a feature in my parser)
where you can give names to parts of a production. They call it
"semantic something-or-other". So A-pre would look like
"A-pre <- pre-clause A:cmavo spaces?"
"cmavo" there would just be a label that affects the parse tree,
creating an extra node called "cmavo" that contains "A".
What do you think?
Chris Capel
--
"What is it like to be a bat? What is it like to bat a bee? What is it
like to be a bee being batted? What is it like to be a batted bee?"
-- The Mind's I (Hofstadter, Dennet)
To unsubscribe from this list, send mail to lojban-list-request@lojban.org
with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if
you're really stuck, send mail to secretary@lojban.org for help.