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

[lojban] Parse tree!



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