List Info

Thread: Decouple parsing and interpreting




Decouple parsing and interpreting
country flaguser name
Italy
2007-06-08 06:05:52
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-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )