Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Aocla
  • Breeze
  • Callisto
  • Cat
  • Cognate
  • colorForth
  • Concata
  • CoSy
  • Deque
  • DSSP
  • dt
  • Elymas
  • Enchilada
  • ETAC
  • F
  • Factor
  • Fiveth
  • Forth
  • Fourth
  • Freelang
  • Gershwin
  • hex
  • iNet
  • Joy
  • Joy of Postfix App
  • kcats
  • Kitten
  • lang5
  • Listack
  • LSE64
  • Lviv
  • Meow5
  • min
  • Mirth
  • mjoy
  • Mlatu
  • Ode
  • OForth
  • Om
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Prowl
  • Quest32
  • Quackery
  • r3
  • Raven
  • Retro
  • RPL
  • SPL
  • Staapl
  • Stabel
  • Tal
  • Titan
  • Trith
  • Uiua
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Concatenative topics

  • Compilers
  • Interpreters
  • Type systems
  • Object systems
  • Quotations
  • Variables
  • Garbage collection
  • Example programs

Concatenative meta

  • People
  • Communities

Other languages

  • APL
  • C++
  • Erlang
  • FP trivia
  • Haskell
  • Io
  • Java
  • JavaScript
  • Lisp
  • ML
  • Oberon
  • RPL
  • Self
  • Slate
  • Smalltalk

Meta

  • Search
  • Farkup wiki format
  • Etiquette
  • Sandbox

Editor integration

Factor provides support for interacting with your text editor of choice (assuming a suitable edit hook has been written.) Hooks have been written for jEdit, VIM, Emacs, Scite and a number of others. See the source code in basis/editors for more details.

Editing Source

You can enable editor support in the Factor workspace by using the appropriate editor hook. For example, to add support for the VIM, you could source the following (or add it to your .factor-rc file):

USING: namespaces editors.gvim ;
"/opt/local/bin/gvim" \ gvim-path set-global

You must use namespace to get access to the set-global word. editors.gvim contains the gvim-specific hooks for editing. Note that the gvim-path word is escaped, so that we change its value, rather than the name it holds.

If you restart Factor with this /.factor-rc file, executing the following statements will cause gvim to open the file containing the word definition:

USE: demos
\ demos edit

Other examples can be found in the on line documentation under the edit ( defspec -- ) definition.

Jump to error location

If a syntax error was thrown while loading a source file, you can jump to the location of the error in your editor using the :edit word.

This revision created on Mon, 10 Nov 2008 19:47:47 by bfulgham (Escape the gvim-path word so that *it* is changed.)

Latest Revisions Edit

All content is © 2008-2024 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license.