Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Aocla
  • Breeze
  • Cat
  • Cognate
  • colorForth
  • CoSy
  • Deque
  • Elymas
  • Enchilada
  • ETAC
  • F
  • Factor
  • Forth
  • Freelang
  • Gershwin
  • Joy
  • Kitten
  • lang5
  • Lviv
  • min
  • mjoy
  • Mlatu
  • Ode
  • Om
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Quackery
  • r3
  • Raven
  • Retro
  • Staapl
  • Stabel
  • Trith
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Other languages

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

Computer Science

  • Type systems
  • Language paradigms
  • Compilers
  • Interpreters
  • Garbage collection

Meta

  • Search
  • Farkup wiki format
  • People
  • Etiquette
  • Sandbox

Scaffold tool

See http://docs.factorcode.org/content/article-tools.scaffold.html.

  • 2009-07-14: Some of the following is not quite right. scaffold-vocab does not create a test suite stub, and an author file is only created iff developer-name has been set.

The scaffold tools help automate the process of creating proper Factor workspaces for development.

First, incorporate the Scaffold tools in your environment and instruct them to create a workspace for new development.

USE: tools.scaffold
"resource:work" "my-cool-project" scaffold-vocab

These commands will instruct Factor to create an initial source file for your work, as well as an initial stub for a test suite, and an author file. The "resource:work" element refers Factor to the canonical work location (usually in the Factor root directory called work.)

In fact, if you add the following to your .factor-rc the authors.txt and source files will magically insert your name in the appropriate places for you:

USING: namespaces tools.scaffold ;
"My Name" \ developer-name set-global

You can edit any of the files produced by the call to scaffold-vocab by clicking on them. You can also bring the file up in the editor manually:

P" resource:work/my-cool-project/my-cool-project.factor" edit-file

Note: This assumes you have configured the Editor integration.

This revision created on Tue, 14 Jul 2009 18:22:30 by mncharity (+pointer to docs.factorcode scaffold article. +note wiki article isn't quite right.)

Latest Revisions Edit

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