The SWAG Pascal Archive

Way back in 1997 the old SWAG archive of Pascal code was closed down. There have been a few attempts to resurrect it over the years, with a HTML version being released in 2003. Unfortunately some of the mirrors have now been closed down.

Never heard of SWAG? Well this is what the original authors said about it:

SWAG is a collection of source code and program examples for the PASCAL programming language. The material has been donated by various PASCAL programmers from around the world ... SWAG packets are available in 57 different categories covering EVERY aspect of the PASCAL language ... SWAG is intended to be a teaching and learning aid for users of the PASCAL language. Whether you are a beginner or experienced programmer, you'll find SWAG to be an invaluable source of ideas and information.

After some discussion with a couple of Delphi & Pascal coders it would seem there's still some interest in preserving the archive in the hope it might be useful to others.

Anyhow, whether it's useful or not, I've now mirrored SWAG on delphidabbler.com.

I decided to go a little further than simply mirroring the original HTML version of the arhive: there are three ways of accessing SWAG:

  1. I've created a jQuery based web application at swag.delphidabbler.com where you can view the archive by category.
  2. You can access SWAG from your own program and web sites using a REST API. For more info see the API Docs.
  3. You can just download the original HTML archive as a 7z file from http://swag.delphidabbler.com/download/webswag.7z (about 18Mb).

If you've time to check the web app I'd be grateful for comments. I do intend to add syntax highlighting, but that's about all unless anyone suggests anything else.

Finally, I'm currently working on adding a feature to my CodeSnip to enable it to import code from SWAG into its code bank.

Comments

Popular posts from this blog

New String Property Editor Planned For RAD Studio 12 Yukon 🤞

Multi-line String Literals Planned For Delphi 12 Yukon🤞

Call JavaScript in a TWebBrowser and get a result back