SWAG Pascal Snippets (SWAG Reader)
File type: Source code and script file
An SWG file contains material from SWAG, a collection of Pascal code snippets and related programming information. It is intended for use with a SWAG Reader.
File type category:
Source code and script file
Date updated: November 17, 2026
Record marked as obsolete and not updated for a long time.
SWAG stands for SourceWare Archive Group. It is a collection of Pascal source code and programming information contributed for other Pascal programmers to use.
An SWG file holds snippets and related text, rather than a standalone compiled application. The code may need to be copied into a Pascal source file before it can be compiled or used in a project.
The collection is associated with Turbo Pascal for MS-DOS, which can be used to work with suitable Pascal source code. The SWG format is obsolete, and the original SWAG Reader is legacy software.
Use a SWAG Reader to browse the contents. The associated reader is legacy software; if it is unavailable, try opening the SWG file in a plain-text editor to inspect its snippets. Turbo Pascal for MS-DOS can work with Pascal code copied from the file, but the SWG file is not itself a compiled Turbo Pascal program.
There is no general conversion that turns an SWG collection into a complete Pascal program. To use a snippet, copy the relevant Pascal code into a source file, save it in a format Turbo Pascal can read, and check whether it needs additional code or changes before compiling.
Software applications that handle other tasks involving swg files:
Microsoft MS-DOS