Factor plugin

Factor is a programming language with postfix syntax. This document describes the Factor plugin only, not the Factor language itself. The language is described in detail in the Factor Developer's Guide. Also, be sure to visit the Factor home page located at factor.sourceforge.net.

If you're interested in using the Factor plugin as a quick calculator embedded in jEdit, here is a quick start guide:

2 2 + .
10 3 ^ .
HEX: ffce HEX: fefc bitand .
pi sin .
pi i * exp .

Introduction

If Factor is compiled with the jEdit classes in the class path, the resulting Factor.jar can then be placed in $HOME/.jedit/jars/ and loaded by jEdit.

The plugin embeds a Factor interpreter inside jEdit that gets lazily loaded when first used. The interpreter communicates with the plugin and vice versa to perform various useful tasks.

Note that while the Factor plugin requires jEdit 4.2pre15, you will need to download and install the Factor edit mode separately from the Factor home page. If you are running jEdit 4.2final, this edit mode is already included.

Plugin actions

The Factor plugin adds a menu to jEdit's Plugins menu with the following commands (which can also be assigned keyboard shortcuts, added to the tool bar etc):

SideKick parser

The Factor plugin uses the SideKick plugin to perform background parsing of Factor source files. This has the following implications: