This patch refactors whole-file parsing out of RBParser and
into a
subclass, and extracts the parsing actions into another
hierarchy
STParsingDriver. The new hierarchy effectively implements a
Strategy
pattern.
The new hierarchy is like this
RBParser
STFileParser
STFileInParser
STParsingDriver
STEvaluationDriver (new name of the old
STFileInParser)
STInterpreter
STClassLoader
SyntaxConverter
The compiler hierarchy is not affected by the change.
This way, the actual parsing is independent of the actions.
In the
future, this will allow one to write for example a
SqueakFileInParser,
XMLFileInParser, and plug them into the newly-born
conversion tool to
convert Squeak or VisualWorks XML to the GNU Smalltalk
syntax.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|