Refactored the overall process, fixed #0005: link behaviour.

* Refactored the overall process flow. Instead of ``JLPMain`` handling the
  process, it now reads the command line options and defers to ``Processor`` to
  handle the actual process. The ``Processor`` instance is responsible for
  processing one batch of input files and holds all the state that is common to
  this process.
* ``JLPBaseGenerator`` and generators based on it are now only responsible for
  handling one file, generating output from a source AST. As a consequence
  state that is common to the overall process is no longer stored in the
  generator but is stored on the ``Processor`` instance, which is exposed to the
  generators.
* Generators can now be instantiated directly (instead of having just a public
  static method) and are no longer one-time use. Now the life of a generator is
  expected to be the same as the life of the ``Processor``.
* Fixed inter-doc link behaviour.
* Created some data classes to replace the ad-hoc maps used to store state in
  the generator (now in the ``Processor``)
This commit is contained in:
Jonathan Bernard
2011-09-09 14:28:48 -05:00
parent e6d515fc96
commit d31d17d1e2
8 changed files with 267 additions and 107 deletions

View File

@ -1,6 +1,6 @@
#Thu, 08 Sep 2011 12:27:26 -0500
#Fri, 09 Sep 2011 14:26:03 -0500
name=jlp
version=0.2
version=0.3
build.number=1
lib.local=true
release.dir=release