"Z-parser (ZIL)" ;"Parser global variable convention: All parser globals will begin with 'P-'. Local variables are not restricted in any way. " > > > ;"INBUF - Input buffer for READ" > ;"Parse-cont variable" > > > ;"Parser variables and temporaries" ;"Byte offset to # of entries in LEXV" ;"Word offset to start of LEXV entries" ;"Number of words per LEXV entry" ;"Offset to parts of speech byte" ;"Offset to first part of speech" ;"First part of speech bit mask in PSOFF byte" > > " Grovel down the input finding the verb, prepositions, and noun clauses. If the input is or , fall out immediately setting PRSA to ,V?WALK and PRSO to . Otherwise, perform all required orphaning, syntax checking, and noun clause lookup." ) LEN (DIR <>) (NW 0) NUM) > )>) (T )> "> )> > )> > > 0> ) (> >> ) (> <==? .VERB ,ACT?WALK>> >> ,W?THEN ,W?.> >> ,W?THEN>)> > )>) (> > 2>>>> >>) (> > >> <==? > ,W?OF> <0? .VAL> >>) (> > ,W?THEN ,W?.>>> )>) (<==? ,P-NCN 2> ) (T > > > >)>) () (T )>) (T )> >> )> > T)>> ;"Check whether word pointed at by PTR is the correct part of speech. The second argument is the part of speech (,PS?). The 3rd argument (,P1?), if given, causes the value for that part of speech to be returned." > .BIT> ) (T > > >)> )>)>> ;" Scan through a noun clause, leave a pointer to its starting location" ) (FIRST?? <>) NW) #DECL ((PTR VAL OFF NUM) FIX (WORD NW) (ANDFLG FIRST??) ) 2>> > > .VAL> .WORD> >) (T >)> > )> > >> > 0> >> )> > ) (T >>)> ) ( > >)>) ( >> > >> >) ( > >) ( > >> 2>>> ) (T >)>) ( >) ( >> > ,W?THEN> >) (T )>) (T )> > >>> ;"Print undefined word in input. PTR points to the unknown word in P-LEXV" ) (ELSE > >)>>> >> 2> 3>> > ;"Clear out the input table (prior to GROVELing through the input)" ) (T )>>> ;" Perform syntax matching operations, using P-ITBL as the source of the verb and adjectives for this input. Returns false if no syntax matches, and does it's own orphaning. If return is true, the syntax is saved in P-SYNTAX." ) (DRIVE2 <>) PREP VERB TMP) #DECL ((DRIVE1 DRIVE2) > (SYN) (LEN NUM VERB PREP) FIX (OBJ) ) >> )> >> > > ,P-SONUMS>> > <0? ,P-NCN> >> <==? .PREP >>> ) (<==? > <==? ,P-NCN 1>> ) (<==? > )>)> ) (T )>) (T >)>> >>> ) ( >>> ) (T )>> ) >> )> > 1> > > > ) (T )>)> > )> .OBJ)>) (T )>> 2>> ) (<==? .PREP> >>)>>> >) > 0>> > ,P-PRSO> > > >>)> > 0>> > ,P-PRSI> > >> 1> >) (T >)>)>)> > > ) (> ,P-BUTS>) (T .OBJ> >)> >> .NTBL> > > > > > > > ) (BUT <>) LEN WV WORD NW) #DECL ((TBL) TABLE (PTR EPTR) (AND) (BUT) (WV) ) > >>) (T > >)>) ( > > ) ( >)>) (T > > >)>) ( >> > > T) () () (<==? .WORD ,W?OF> )>) (> ) ( )>)> > > )>>> )) #DECL ((TBL) TABLE (XBITS BITS TLEN LEN) FIX (GWIM) (VRB GCHECK) ) > )> ,P-ADJ > >)> > <0? ,P-GWIMBIT>> )> )> > <0? ,P-SLOCBITS>> )> ) (T )> )> .TLEN>> ) ( >>> .LEN>> ) (T )> > > )>) ( .GCHECK> )> )> ) (T )>)> > > ) (<0? .LEN> )> > > >> (RMGL CNT) FIX (OBJ) OBJECT) > 1>> > .TBL> )> )>>)> > 4> 1>> >> 1>>> 5>> > > ) ( )>>)> > )>> > ) (T ) ( ) (T )>)>> (TBL) TABLE (LVL) FIX (FLS) ANY) > > > )> > > > >> ,P-SRCALL) (T ,P-SRCTOP)>>>)> >) (T )>>)>> > .OBJ> >> > >>> ) > > > 0> ) (T >> )> > ) (<==? > T> >) (T )> > ) ( )>)>)>>) (T)>> ) TMP) #DECL ((LOSS) ) 1> ,SMANY>>> ) ( 1> ,SMANY>>> )> > >) (T >)> ) (T)>> )> > ) (ELSE >)> > ) ( )>>> > ) ( )>>> > )) #DECL ((RM OHERE) OBJECT (LIT) ) ,ALWAYS-LIT> ) (T )> 0> )>)> .LIT>