## TreeGen: Generates the glossary files for classes.
require"./tools/zsclasstree.rb"
DIR=ARGV.shift
VER=ARGV.shift
si=ClassSiphon.newDIR
f=open"glossary-classes.md","wb"
f.puts<<_end_
# Classes
HereisafulltreeofallclassesinZScriptasofGZDoom#{VER}. There are #{si.classes.count + 1} classes total.
```
Object
_end_
si.print_classesf
f.puts<<_end_
```
<!--EOF-->
_end_
f=open"glossary-structures.md","wb"
f.puts<<_end_
# Structures
HereisafulllistofallstructuresinZScriptasofGZDoom#{VER}. There are #{si.structs.count} structures total. Note that some of these are merely implementation details and should not be used in code.