Re: [Factor-talk] length

2012-08-29 Thread Doug Coleman
Which platform? On Tue, Aug 28, 2012 at 6:38 PM, graham telfer gakouse...@hotmail.com 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

Re: [Factor-talk] Literate Programming

2012-08-29 Thread Jon Harper
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,

Re: [Factor-talk] Literate Programming

2012-08-29 Thread P.
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 jon.harpe...@gmail.com wrote: Short

Re: [Factor-talk] Literate Programming

2012-08-29 Thread John Benediktsson
I just pushed a vocab with some ideas that might help you get started: USE: literate 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-work? ( -- x ) no it doesn't! ; But, then if you want to run some

Re: [Factor-talk] Literate Programming

2012-08-29 Thread Alexander J. Vondrak
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,

Re: [Factor-talk] Literate Programming

2012-08-29 Thread Joe Groff
On Wed, Aug 29, 2012 at 12:22 PM, John Benediktsson mrj...@gmail.com wrote: I just pushed a vocab with some ideas that might help you get started: USE: literate LITERATE This is a section that is mostly text... you can even include factor stuff that doesn't get parsed like the following:

Re: [Factor-talk] Literate Programming

2012-08-29 Thread John Benediktsson
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

Re: [Factor-talk] length

2012-08-29 Thread graham telfer
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

Re: [Factor-talk] Literate Programming

2012-08-29 Thread graham telfer
I just pushed a vocab with some ideas that might help you get started: USE: literate 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-work? ( -- x ) no it doesn't! ; But, then if you want to run some