Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Joe Groff
On Nov 9, 2010, at 2:08 PM, Shaping wrote: > > I'm hungry for local variables, now, though this goes against much of the > basis of stack languages. I want lexical forms I can read and understand > (parse with my mind, left-to-right, and down in a tree) to produce a known > result (not a be

Re: [Factor-talk] Problems with the Hello World and timer-server examples.

2010-11-09 Thread John Benediktsson
> > I created the file > Hello-world.factor from here > > http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/hello-world/hello-world.factor;hb=HEAD > > 1 USE: io > 2 IN: hello-world > 3 > 4 : hello ( -- ) "Hello world" print ; > 5 > 6 MAIN: hello > > This works in the Listener. >

[Factor-talk] Problems with the Hello World and timer-server examples.

2010-11-09 Thread Jeff C. Britton
I am brand new to Factor. I downloaded factor-winnt-x86-32-0.04.zip. I created the file Hello-world.factor from here http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/hello-world/hello-world.factor;hb=HEAD 1 USE: io 2 IN: hello-world 3 4 : hello ( -- ) "Hello world" print ;

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Jim mack
Maybe the dsl aspect could be viewed as applying a layer of sugar to the stack based workhorse. You could easily have 'adjectives' that accumulate into a variable, not on the stack, then a noun word that takes those options and does the work. This is how I accumulate attributes for the HTML eleme

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Jon Harper
Shaping, have you read this page : http://concatenative.org/wiki/view/Concatenative%20language ? Jon On Tue, Nov 9, 2010 at 10:44 AM, Shaping wrote: > Thanks Chris.  I'm working on this now. > > I managed to get the Browser looking really good with the stylesheet tweak > that kenanb suggested.  

Re: [Factor-talk] PEGs

2010-11-09 Thread Shaping
I'm working now in the second article, which seems to prefer EBNF: to cannot be found in the current vocab search path, even though math.parser is in the path. Shaping -Original Message- From: Shaping [mailto:shap...@charter.net] Sent: 2010-November-09, 05:47 To: factor-talk@lists.sour

[Factor-talk] PEGs

2010-11-09 Thread Shaping
I tried the first two yellow blocks in this article http://www.bluishcoder.co.nz/2007/11/embedded-grammars-in-factor.html The first block I put on a word, and it compiled. The next three evaluables didn't not work. For example "123" number parse raised an exception (U) Quotation: [ set-names

Re: [Factor-talk] PEGs

2010-11-09 Thread Chris Double
On Wed, Nov 10, 2010 at 12:47 AM, Shaping wrote: > I tried the first two yellow blocks in this article > > http://www.bluishcoder.co.nz/2007/11/embedded-grammars-in-factor.html The syntax has changed quite a bit since that post. The example would now be something like: EBNF: expr digit = '1'

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Shaping
Thanks Chris. I'm working on this now. I managed to get the Browser looking really good with the stylesheet tweak that kenanb suggested. Does anyone know how to change the font style and size in the Listener. Shaping -Original Message- From: Chris Double [mailto:chris.dou...@double.co

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Chris Double
On Tue, Nov 9, 2010 at 9:38 PM, Shaping wrote: > I need to be able to write a parser in a > straightforward way (XStreams-style maybe) using a PEG (collection of BNF > productions) so that I can experiment efficiently with this idea.  Does > anyone have any experience with PEGs in Factor? Read t

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Shaping
In context, I thought I was mentioning it after I had counseled you to try a factor code-compile-test cycle that wasn't perfectly what you desired to just get going and have fun. I just didn't want you to think I was trying to shut down non-orthodox ideas - factor to me represents just the opposit