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

2010-11-10 Thread Shaping
@lists.sourceforge.net Subject: Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor 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

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

2010-11-10 Thread Shaping
Maybe the dsl aspect could be viewed as applying a layer of sugar to the stack based workhorse. Somewhat, but it is much more than sugar. It is grease for the mind and ironically traction too. Shuffling is fragile until you are fluent. Even then it is work, and causes mistakes. It is not a

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

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 shap...@charter.net 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

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

2010-11-09 Thread Shaping
...@double.co.nz] Sent: 2010-November-09, 02:57 To: factor-talk@lists.sourceforge.net Subject: Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor On Tue, Nov 9, 2010 at 9:38 PM, Shaping shap...@charter.net wrote: I need to be able to write a parser in a straightforward way

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

2010-11-09 Thread Jon Harper
(PEGs) and some observations about Factor On Tue, Nov 9, 2010 at 9:38 PM, Shaping shap...@charter.net 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

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

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 best