Life is Short, You Need FORTH FFL

2015-12-28 02:39:00 UTC

The GForth FORTH interpreter does a lot of stuff out-of-the-box, but it can’t do everything. The FORTH foundation library supplements a FORTH environment with a lot of the things you would expect from a language.

It provides stuff like:

  • JSON readers / writers
  • Dynamic arrays
  • Dynamic map data structures
  • Linked lists
  • Random numbers
  • Regexs
  • XML
  • Unit tests
  • rainbows
  • unicorns

Here’s how you get it:

  1. git clone https://github.com/RickCarlino/ffl
  2. The /ffl folder has all the files you need to include them into your project.
  3. include ffl/ffl.s will add all FFL libraries to a program
  4. For finer grained includes, include the file directly (eg: include ffl/jis.fs for JSON input stream only)