From rlpowell@digitalkingdom.org Wed Apr 14 23:14:48 2004 Received: with ECARTIS (v1.0.0; list lojban-list); Wed, 14 Apr 2004 23:14:48 -0700 (PDT) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.30) id 1BE094-0008Os-Kc for lojban-list@lojban.org; Wed, 14 Apr 2004 23:14:42 -0700 Date: Wed, 14 Apr 2004 23:14:42 -0700 To: lojban-list@lojban.org Subject: [lojban] Parse tree! Message-ID: <20040415061442.GD21966@digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis User-Agent: Mutt/1.5.5.1+cvs20040105i From: Robin Lee Powell X-archive-position: 7553 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list OK, so it's not much to look at, but the the parse tree of .y.. noras .u'i je .ui oi ..le nu broda cu brode broda as generated by my current grammar/parser is: spacesNotY=( [.] ) suClause=( [] ) spacesNotY=( [] ) PARSERparen4=( Y=( y.. ) ) siClause=( ) NAI=( [] ) PARSERparen7=( PARSERparen1=( [ CMENE=( noras .u'i ) ] ) free=( [] ) ) joikJek=( jek=( NA=() SE=() JA=( je .ui oi .. ) NAI=() ) free=( [] ) ) text1=( paragraph=( PARSERparen1=( statement2=( statement3=( PARSERparen1=( terms=( terms1=( [ terms2=( term=( sumti1=( sumti2=( sumti3=( sumti4=( quantifier=() sumti6=( PARSERparen1=( le ) free=( [] ) sumtiTail=( PARSERparen1=() sumtiTail1=( selbri=( tag=() selbri1=( selbri3=( selbri4=( [ selbri5=( selbri6=( tanruUnit=( tanruUnit1=( tanruUnit2=( NU=( nu ) NAI=() free=( [] ) PARSERparen4=( [] ) subsentence=( PARSERparen1=() bridiTail=( bridiTail1=( bridiTail2=( bridiTail3=( selbri=( tag=() selbri1=( selbri3=( selbri4=( [ selbri5=( selbri6=( tanruUnit=( tanruUnit1=( tanruUnit2=( BRIVLA=( broda ) free=( [] ) ) linkargs=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen2=() ) PARSERparen2=( [] ) ] ) ) PARSERparen2=() ) ) tailTerms=( terms=() PARSERparen2=() ) ) PARSERparen2=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) ) PARSERparen6=() ) linkargs=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen2=() ) PARSERparen2=( [] ) ] ) ) PARSERparen2=() ) ) relativeClauses=() ) ) PARSERparen4=() ) relativeClauses=() ) PARSERparen2=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen2=() ) PARSERparen2=( [] ) ) PARSERparen2=( [] ) ] ) ) PARSERparen2=( CU=( cu ) free=( [] ) ) ) bridiTail=( bridiTail1=( bridiTail2=( bridiTail3=( selbri=( tag=() selbri1=( selbri3=( selbri4=( [ selbri5=( selbri6=( tanruUnit=( tanruUnit1=( tanruUnit2=( BRIVLA=( brode ) free=( [] ) ) linkargs=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen2=() ) PARSERparen2=( [] ) , selbri5=( selbri6=( tanruUnit=( tanruUnit1=( tanruUnit2=( BRIVLA=( broda ) free=( [] ) ) linkargs=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen2=() ) PARSERparen2=( [] ) ] ) ) PARSERparen2=() ) ) tailTerms=( terms=() PARSERparen2=() ) ) PARSERparen2=() ) PARSERparen2=( [] ) ) PARSERparen2=() ) ) PARSERparen2=() ) PARSERparen2=( [] ) ) PARSERparen2=( [] ) ) PARSERparen2=() ) PARSERparen10=() Please note that that line is well over 2000 characters long; I apologize if this chokes your mail reader. This is clearly in desperate need of post-processing, but compared to the amazingly scary perl hack I had to do to make it work at all, that should be trivial. I'll need some Java help to get rid of all those square brackets. -Robin -- http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin. "Many philosophical problems are caused by such things as the simple inability to shut up." -- David Stove, liberally paraphrased. http://www.lojban.org/ *** loi pimlu na srana .i ti rokci morsi