Skip to content

mitranim/sublime-forth

Repository files navigation

Overview

Sublime Text syntax definition for Forth. Tested with GForth.

Supports the general principles of the syntax, comments, declarations. Tries to avoid unnecessary built-ins, which may vary between environments. Probably very incomplete.

Installation

Package Control

  1. Get Package Control.
  2. Open the command palette: ⇪⌘P or ⇪^P.
  3. Package Control: Install Package.
  4. Forth.

Manual

Clone the repo and symlink it to your Sublime packages directory. Example for MacOS:

git clone https://github.com/mitranim/sublime-forth.git
cd sublime-forth
ln -sf "$(pwd)" "$HOME/Library/Application Support/Sublime Text 3/Packages/Forth"

To find the packages directory on your system, use Sublime Text menu → Preferences → Browse Packages.

Build Systems

Doesn't come with a build system, because there are many Forth implementations. Here's how to define one for GForth:

{
  "cmd": ["gforth", "$file", "-e", "bye"],
  "selector": "source.forth",
}

License

https://unlicense.org

Misc

I'm receptive to suggestions. If this package almost satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts

About

Sublime Text syntax for the Forth programming language

Resources

License

Stars

Watchers

Forks

Packages

No packages published