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

Go Bruce! My parser now has pretty printing.



Thanks to the efforts of Bruce Webber, my parser now has a *very* lovely
vertical output mode.  See examples attached.

I, for one, find it easier to read than either of the other two parsers
similar modes.

Both examples use the sentence

    i baziku la alis jersi ry gi'e noroi pensi

The first example is what a normal user might want, the second is the
maximally-verbose version.

I'll see what I can do about adding a mode similar to jbofihe or the
official parser's default output shortly.

-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
Vertial layout requested.
Processing /dev/stdin ...
text
   text1
   |- I: i
   |- paragraphs
         paragraph
            statement ...
               statement3
                  sentence
                  |- terms
                  |  |- terms1
                  |  |     terms2
                  |  |        term
                  |  |        |- tag
                  |  |        |     tenseModal
                  |  |        |        simpleTenseModal
                  |  |        |           time
                  |  |        |              timeOffset
                  |  |        |              |- PU: ba
                  |  |        |              |- ZI: zi
                  |  |        |- KU: ku
                  |  |- terms1
                  |        terms2
                  |           term
                  |              sumti ...
                  |                 sumti6
                  |                 |- LA: la
                  |                 |- CMENE: alis
                  |- bridiTail1
                     |- bridiTail2
                     |     bridiTail3
                     |     |- selbri ...
                     |     |     selbri6
                     |     |        tanruUnit ...
                     |     |           tanruUnit2
                     |     |              BRIVLA: jersi
                     |     |- tailTerms
                     |           terms ...
                     |              terms2
                     |                 term
                     |                    sumti ...
                     |                       sumti6
                     |                          lerfuStringNoMOI
                     |                             lerfuWord
                     |                                BY: ry
                     |- gihek
                     |     GIhA: gi'e
                     |- bridiTail2
                           bridiTail3
                              selbri
                              |- tag
                              |     tenseModal
                              |        simpleTenseModal
                              |           time
                              |           |- number
                              |           |     PA: no
                              |           |- ROI: roi
                              |- selbri1 ...
                                    selbri6
                                       tanruUnit ...
                                          tanruUnit2
                                             BRIVLA: pensi

Vertial layout requested.
Blank data requested.
Morphological breakdown requested.
PARSERparen data requested.
Whitespace data requested.
Processing /dev/stdin ...
text
|- PARSERparen1
|  |- textPart1
|  |     siClause
|  |- text1
|     |- I
|     |  |- IPre
|     |  |     preCmavo
|     |  |        preCmavoCheck
|     |  |- IWords: i
|     |  |- IPost
|     |        postCmavo
|     |           spacingOpt
|     |              spacing
|     |              |- spaces
|     |              |     spaceChars
|     |              |        spaceCharsReal
|     |              |- siClause
|     |- text1
|           paragraphs
|              paragraph
|                 PARSERparen1
|                    statement
|                       statement1
|                          statement2
|                             statement3
|                                sentence
|                                |- PARSERparen1
|                                |     terms
|                                |     |- terms1
|                                |     |     terms2
|                                |     |        term
|                                |     |           PARSERparen1
|                                |     |           |- PARSERparen1
|                                |     |           |     tag
|                                |     |           |        tenseModal
|                                |     |           |           simpleTenseModal
|                                |     |           |              PARSERparen2
|                                |     |           |                 PARSERparen1
|                                |     |           |                    time
|                                |     |           |                       timeOffset
|                                |     |           |                       |- PU
|                                |     |           |                       |  |- PUPre
|                                |     |           |                       |  |     preCmavo
|                                |     |           |                       |  |        preCmavoCheck
|                                |     |           |                       |  |- PUWords: ba
|                                |     |           |                       |  |- PUPost
|                                |     |           |                       |        postCmavo
|                                |     |           |                       |           spacingOpt
|                                |     |           |                       |              siClause
|                                |     |           |                       |- ZI
|                                |     |           |                          |- ZIPre
|                                |     |           |                          |     preCmavo
|                                |     |           |                          |        preCmavoCheck
|                                |     |           |                          |- ZIWords: zi
|                                |     |           |                          |- ZIPost
|                                |     |           |                                postCmavo
|                                |     |           |                                   spacingOpt
|                                |     |           |                                      siClause
|                                |     |           |- PARSERparen2
|                                |     |                 PARSERparen1
|                                |     |                    KU
|                                |     |                    |- KUPre
|                                |     |                    |     preCmavo
|                                |     |                    |        preCmavoCheck
|                                |     |                    |- KUWords: ku
|                                |     |                    |- KUPost
|                                |     |                          postCmavo
|                                |     |                             spacingOpt
|                                |     |                                spacing
|                                |     |                                |- spaces
|                                |     |                                |     spaceChars
|                                |     |                                |        spaceCharsReal
|                                |     |                                |- siClause
|                                |     |- terms1
|                                |           terms2
|                                |              term
|                                |                 sumti
|                                |                    sumti1
|                                |                       sumti2
|                                |                          sumti3
|                                |                             sumti4
|                                |                                sumti5
|                                |                                   sumti6
|                                |                                   |- LA
|                                |                                   |  |- LAPre
|                                |                                   |  |     preCmavo
|                                |                                   |  |        preCmavoCheck
|                                |                                   |  |- LAWords: la
|                                |                                   |  |- LAPost
|                                |                                   |        postCmavo
|                                |                                   |           spacingOpt
|                                |                                   |              spacing
|                                |                                   |              |- spaces
|                                |                                   |              |     spaceChars
|                                |                                   |              |        spaceCharsReal
|                                |                                   |              |- siClause
|                                |                                   |- CMENE
|                                |                                      |- cmeneLetter
|                                |                                      |     lojbanLetter
|                                |                                      |        vowel: a
|                                |                                      |- cmeneTail
|                                |                                         |- cmeneLetter
|                                |                                         |     lojbanLetter
|                                |                                         |        consonant: l
|                                |                                         |- cmeneTail
|                                |                                            |- cmeneLetter
|                                |                                            |     lojbanLetter
|                                |                                            |        vowel: i
|                                |                                            |- cmeneTail
|                                |                                               |- cmeneConsonant: s
|                                |                                               |- spacing
|                                |                                                  |- spaces
|                                |                                                  |     spaceChars
|                                |                                                  |        spaceCharsReal
|                                |                                                  |- siClause
|                                |- bridiTail
|                                      bridiTail1
|                                      |- bridiTail2
|                                      |     bridiTail3
|                                      |     |- selbri
|                                      |     |     selbri1
|                                      |     |        selbri2
|                                      |     |           selbri3
|                                      |     |              selbri4
|                                      |     |                 selbri5
|                                      |     |                    selbri6
|                                      |     |                       tanruUnit
|                                      |     |                          tanruUnit1
|                                      |     |                             tanruUnit2
|                                      |     |                                BRIVLA
|                                      |     |                                |- consonant: j
|                                      |     |                                |- vowel: e
|                                      |     |                                |- consonant: r
|                                      |     |                                |- consonant: s
|                                      |     |                                |- brivlaTail
|                                      |     |                                   |- vowelNotY: i
|                                      |     |                                   |- spacing
|                                      |     |                                      |- spaces
|                                      |     |                                      |     spaceChars
|                                      |     |                                      |        spaceCharsReal
|                                      |     |                                      |- siClause
|                                      |     |- tailTerms
|                                      |           terms
|                                      |              terms1
|                                      |                 terms2
|                                      |                    term
|                                      |                       sumti
|                                      |                          sumti1
|                                      |                             sumti2
|                                      |                                sumti3
|                                      |                                   sumti4
|                                      |                                      sumti5
|                                      |                                         sumti6
|                                      |                                            lerfuStringNoMOI
|                                      |                                               lerfuWord
|                                      |                                                  BY
|                                      |                                                  |- BYPre
|                                      |                                                  |     preCmavo
|                                      |                                                  |        preCmavoCheck
|                                      |                                                  |- BYWords: ry
|                                      |                                                  |- BYPost
|                                      |                                                        postCmavo
|                                      |                                                           spacingOpt
|                                      |                                                              spacing
|                                      |                                                              |- spaces
|                                      |                                                              |     spaceChars
|                                      |                                                              |        spaceCharsReal
|                                      |                                                              |- siClause
|                                      |- PARSERparen2
|                                         |- gihek
|                                         |     GIhA
|                                         |     |- GIhAPre
|                                         |     |     preCmavo
|                                         |     |        preCmavoCheck
|                                         |     |- GIhAWords: gi'e
|                                         |     |- GIhAPost
|                                         |           postCmavo
|                                         |              spacingOpt
|                                         |                 spacing
|                                         |                 |- spaces
|                                         |                 |     spaceChars
|                                         |                 |        spaceCharsReal
|                                         |                 |- siClause
|                                         |- bridiTail2
|                                         |     bridiTail3
|                                         |     |- selbri
|                                         |     |  |- tag
|                                         |     |  |     tenseModal
|                                         |     |  |        simpleTenseModal
|                                         |     |  |           PARSERparen2
|                                         |     |  |              PARSERparen1
|                                         |     |  |                 time
|                                         |     |  |                    intervalProperty
|                                         |     |  |                    |- number
|                                         |     |  |                    |     PA
|                                         |     |  |                    |     |- PAPre
|                                         |     |  |                    |     |     preCmavo
|                                         |     |  |                    |     |        preCmavoCheck
|                                         |     |  |                    |     |- PAWords: no
|                                         |     |  |                    |     |- PAPost
|                                         |     |  |                    |           postCmavo
|                                         |     |  |                    |              spacingOpt
|                                         |     |  |                    |                 siClause
|                                         |     |  |                    |- ROI
|                                         |     |  |                       |- ROIPre
|                                         |     |  |                       |     preCmavo
|                                         |     |  |                       |        preCmavoCheck
|                                         |     |  |                       |- ROIWords: roi
|                                         |     |  |                       |- ROIPost
|                                         |     |  |                             postCmavo
|                                         |     |  |                                spacingOpt
|                                         |     |  |                                   spacing
|                                         |     |  |                                   |- spaces
|                                         |     |  |                                   |     spaceChars
|                                         |     |  |                                   |        spaceCharsReal
|                                         |     |  |                                   |- siClause
|                                         |     |  |- selbri1
|                                         |     |        selbri2
|                                         |     |           selbri3
|                                         |     |              selbri4
|                                         |     |                 selbri5
|                                         |     |                    selbri6
|                                         |     |                       tanruUnit
|                                         |     |                          tanruUnit1
|                                         |     |                             tanruUnit2
|                                         |     |                                BRIVLA
|                                         |     |                                |- consonant: p
|                                         |     |                                |- vowel: e
|                                         |     |                                |- consonant: n
|                                         |     |                                |- consonant: s
|                                         |     |                                |- brivlaTail
|                                         |     |                                   |- vowelNotY: i
|                                         |     |                                   |- spacing
|                                         |     |                                      |- spaces
|                                         |     |                                      |     spaceChars
|                                         |     |                                      |        spaceCharsReal
|                                         |     |                                      |- siClause
|                                         |     |- tailTerms
|                                         |- tailTerms
|- EOF