<div dir="ltr"><div dir="ltr"><div>Hi List,</div><div><br></div><div>I am trying to draw syntax/parse trees for some XyPic code that I</div><div>found in the diagxy manual, but there are some things that don't make</div><div>sense to me yet. I tried to parse this code myself,</div><div><br></div><div>  \POS(1500,1000)*+!!<0ex,.75ex>{T_{n-1}}</div><div>  \ar@{-}|!{(1000,500);(1500,500)}\hole(1167,334)</div><div>  \POS(1167,334)</div><div>  \ar|!{(1000,500);(1000,0)}\hole_<>(.6){h_{n-1}}</div><div>  (500,0)*+!!<0ex,.75ex>{S_n}</div><div><br></div><div>but I only managed to write parse trees for its second line if both</div><div><cs> and <pos> can expand to <empty>...</div><div><br></div><div>My trees are here,</div><div><br></div><div>   <a href="http://angg.twu.net/LATEX/2019xysyntax.pdf">http://angg.twu.net/LATEX/2019xysyntax.pdf</a> (PDF)</div><div>   <a href="http://angg.twu.net/LATEX/2019xysyntax.zip">http://angg.twu.net/LATEX/2019xysyntax.zip</a> (source)</div><div><br></div><div>and if anyone want to look at the source code for that, try:</div><div><br></div><div>  rm -rfv /tmp/2019xysyntax.zip</div><div>  rm -rfv /tmp/edrx-latex/</div><div>  cd /tmp/</div><div>  wget <a href="http://angg.twu.net/LATEX/2019xysyntax.zip">http://angg.twu.net/LATEX/2019xysyntax.zip</a></div><div>  mkdir    /tmp/edrx-latex/</div><div>  unzip -d /tmp/edrx-latex/ /tmp/2019xysyntax.zip</div><div>  cd       /tmp/edrx-latex/</div><div>  lualatex 2019xysyntax.tex</div><div><br></div><div>I think you'll be amused by the way that the syntax trees are drawn in</div><div>the source, using ascii art in comment blocks. These comments are</div><div>parsed by Dednat6, that is included in the .zip; Dednat6 is a</div><div>front-end for diagxy and proof.sty, and diagxy in its turn is a</div><div>front-end for XyPic. The main links for Dednat6 are:</div><div><br></div><div>  <a href="http://angg.twu.net/LATEX/2018tugboat-rev1.pdf">http://angg.twu.net/LATEX/2018tugboat-rev1.pdf</a> (TUGBoat article)</div><div>  <a href="http://angg.twu.net/LATEX/2018dednat6-extras.pdf">http://angg.twu.net/LATEX/2018dednat6-extras.pdf</a> (extra features/docs)</div><div>  <a href="http://angg.twu.net/dednat6.zip">http://angg.twu.net/dednat6.zip</a> (zip file)</div><div>  <a href="http://angg.twu.net/dednat6.html">http://angg.twu.net/dednat6.html</a> (home page)</div><div>  <a href="http://tug.org/pipermail/luatex/2019-January/007034.html">http://tug.org/pipermail/luatex/2019-January/007034.html</a> (a question)</div><div><br></div><div>Cheers & thanks in advance =),</div><div>  Eduardo Ochs</div><div>  <a href="http://angg.twu.net/">http://angg.twu.net/</a></div><div>  <a href="http://angg.twu.net/math-b.html">http://angg.twu.net/math-b.html</a></div><div><br></div></div></div>