«previous next»

Demo Programs and Examples

To see these and any added examples, browse the SAMPLES directory that is installed with SwiftForth. Most come with rudimentary operating instructions. All are provided as source files that you may INCLUDE and run according to their directions.

BENCH.F

The standard FORTH, Inc. benchmark suite.

BOUNCE.F

Bouncing ball, from Petzold.

BUCKETS.F

Measures the efficiency of the header hash and the number of threads chosen.

DLLSAMPLE.F

Sample DLL exporting calculator functions.

GIBBS.F

Illustrates Gibbs phenomenon.

GUIMAZE.F

A random maze generation program.

HELLO.F

SwiftForth's HELLO WORLD demo

The first Windows program. Says "hello world" and counts clock ticks and mouse-button clicks in multiple windows.

HELLOWIN.F

Plays a .WAV file.

MAGNIFY.F

A mouse-position magnifying glass for Windows.

MDIDEMO.F

A demonstration of MDI windows in SwiftForth.

RNDLINES.F

Uses a random-number generator to draw lines.

SCRAMBLE.F

An example of using device contexts and the BitBlt function (only for Windows 95).

SCRIBBLE.F

A connect-the-dots program, demonstrating graphics line drawing.

SENDMAIL.F

Demonstration of a synchronous Winsock interface.

SHOWFONTS.F

Enumerates the system fonts. Example of a Windows callback.

SIMPLE.F

Implements a very simple modal dialog box.

SOKOBAN.F

A popular game implemented with icons.

SPLITTER.F

Demonstrates how to divide a main window with multiple children and resize both simultaneously.

TETRIS.F

Another game, implemented with graphics and sound.


«previous next»