On Sun, Aug 2, 2015 at 4:18 AM, Michael Van Canneyt <[email protected]> wrote: >> How about change to an Abstract Converter Class(interface?) ?? > > What do you mean by this ? > >> I am thinking about using the same structure to convert to some text >> format. > > All you will have in common is the fcl-passrc ?
Today the Converter is dedicated to one format only: Javascript. I was thinking about a base Pascal converter. After that, specific converters could be implemented: TPascalConverter = class procedure WriteIfStatement(...); virtual; procedure WriteWhileStatement(...); virtual; end; TPascalToJavascriptConverter = class(TPascalConverter) procedure WriteIfStatement(...); override; end; TPascalToJSonConverter = class(TPascalConverter) procedure WriteIfStatement(...); override; end; Something like that. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
