I just pushed a vocab with some ideas that might help you get started:
USE: literate
: this-totally-works! ( -- x ) 12345 ;
And then some more text, for fun...
LITERATE>
Try it and you'll see that the first definition is ignored, but the second
is parsed:
IN: scratchpad \ does-this-work
I'm using Windows Vista.
From: gakouse...@hotmail.com
To: factor-talk@lists.sourceforge.net
Subject: length
Date: Wed, 29 Aug 2012 01:38:15 +
Using sequences in Factor 0.95 I type something like { 1 2 3 } length in the
Listener but get nothing returned.
The stack is not empty though b
You're not alone at all, I completely agree -- a "printed page" worth of
code in factor is often much more elegant due to separate documentation.
On Wed, Aug 29, 2012 at 1:33 PM, Alexander J. Vondrak <
ajvond...@csupomona.edu> wrote:
> Tangential thought, but I always loved that Factor's document
On Wed, Aug 29, 2012 at 12:22 PM, John Benediktsson wrote:
> I just pushed a vocab with some ideas that might help you get started:
>
> USE: literate
>
>
> This is a section that is mostly text... you can even include "factor" stuff
> that doesn't get parsed like the following:
>
> : does-this-wo
Tangential thought, but I always loved that Factor's documentation is separate
from the actual source code (i.e., that foo.factor's docs live in
foo-docs.factor). In really any other language I can think of, you have to
clutter what might otherwise be easy-to-read code with gobs of explanations,
e
I just pushed a vocab with some ideas that might help you get started:
USE: literate
: this-totally-works! ( -- x ) 12345 ;
And then some more text, for fun...
LITERATE>
Try it and you'll see that the first definition is ignored, but the second
is parsed:
IN: scratchpad \ does-this-work?
And just to add that thanks to the ability to manipulate the lexer in
Factor, you can write a literate programming syntax library and it could be
however you want it, including exactly like Haskell's.
- rien
On Wed, Aug 29, 2012 at 2:03 PM, Jon Harper wrote:
> Short answer: no.
> The factor doc
Short answer: no.
The factor documentation system is described here:
http://docs.factorcode.org/content/article-writing-help.html
Interestingly, the documentation system is written in factor and documented
using itself, so this html page is a good example of the output it produces.
Jon
On Wed, Au
Which platform?
On Tue, Aug 28, 2012 at 6:38 PM, graham telfer wrote:
> Using sequences in Factor 0.95 I type something like { 1 2 3 } length in
> the Listener but get nothing returned.
> The stack is not empty though because ' .s ' does not report stack
> underflow. It prints out a blank. Typin