[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] peg grammar parse tree cmavo
- To: lojban-list@lojban.org
- Subject: [lojban] peg grammar parse tree cmavo
- From: "Chris Capel" <pdf23ds@gmail.com>
- Date: Thu, 8 Nov 2007 11:33:17 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=UKUebu6vjXtMCul62o3bJj8UgG4bod3UxFsleD7YVQM=; b=JXgXiPichIblPI6HAmnxyYOIrF0DudHhob8zxXEiHqJGLauiUr0jHFPQKWRXdWMH9iUQkH8xpZP4Zc1y20eRLN22osx+xfr4r+eEVx7Fk5IXi6xDDGh9svCDhWM9aL0FAAeeR1X11UHVfguhswFH60B2rSFNqnJwPw14p8kCZHM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=C31mGoy+qqsu4NUlrLunZQ6CiCI6HdoyqnMWlfITbyD/a2yb3cxeXcSudHApxNUCWDFxrvS7ZRXYaf8INPXGJSdazxN5swrNX5wvzanwmcnmWAhNKp0tU2hVNAeAMkL7ApN0FmQXF51qXDAzRr2vUL7H+r3CXcUYx8l91IzVRl8=
- Reply-to: lojban-list@lojban.org
- Sender: lojban-list-bounce@lojban.org
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.