Re: [Factor-talk] PEGs

2010-11-11 Thread Shaping
> > How do I use the keyboard keys to cycle back through old > expressions? > > Currently I have to scroll to the old position and double-click to > > re-enter it. >

Re: [Factor-talk] PEGs

2010-11-11 Thread Shaping
> I've noticed that the online EBNF help is not the same as that in the local > Help Browser. It is the same, except for possible minor differences between Factor versions. If you go: "peg.ebnf" about

Re: [Factor-talk] PEGs

2010-11-11 Thread Rupert Swarbrick
"Shaping" writes: > > How do I use the keyboard keys to cycle back through old > expressions? > > Currently I have to scroll to the old position and > double-click to > > re-enter it. > > See > > http://docs.factorcode.org/content/ar

Re: [Factor-talk] PEGs

2010-11-11 Thread Chris Double
On Thu, Nov 11, 2010 at 9:26 PM, Shaping wrote: >> How do I use the keyboard keys to cycle back through old expressions? > >> Currently I have to scroll to the old position and double-click to > >> re-enter it. http://docs.factorcode.org/content/article-ui-listener.html Chris. -- http://www.blu

Re: [Factor-talk] PEGs

2010-11-11 Thread Shaping
> How do I use the keyboard keys to cycle back through old expressions? > Currently I have to scroll to the old position and double-click to > re-enter it. See http://docs.factorcode.org/content/article-gadgets-editors-comma

Re: [Factor-talk] PEGs

2010-11-10 Thread Slava Pestov
On Wed, Nov 10, 2010 at 4:57 AM, Rupert Swarbrick wrote: > Incidentally, has it occurred to you that the authors of this program > (not me!) are the most active members of this list? Also, that the > author of a program might take some offence at being told that it "is > not polished visually", bu

Re: [Factor-talk] PEGs

2010-11-10 Thread Joe Groff
On Nov 10, 2010, at 6:27 PM, Rupert Swarbrick wrote: > Incidentally, has it occurred to you that the authors of this program > (not me!) are the most active members of this list? Also, that the > author of a program might take some offence at being told that it "is > not polished visually", but s

Re: [Factor-talk] PEGs

2010-11-10 Thread Kyle Cordes
On Wed, Nov 10, 2010 at 6:57 AM, Rupert Swarbrick wrote: > Incidentally, has it occurred to you that the authors of this program > (not me!) are the most active members of this list? Also, that the > author of a program might take some offence at being told that it "is I wondered if someone woul

Re: [Factor-talk] PEGs

2010-11-10 Thread Chris Double
On Thu, Nov 11, 2010 at 1:18 AM, Shaping wrote: > I've noticed that the online EBNF help is not the same as that in the local > Help Browser. It is the same, except for possible minor differences between Factor versions. If you go: "peg.ebnf" about You will get the 'about' page for the peg.ebnf

Re: [Factor-talk] PEGs

2010-11-10 Thread Rupert Swarbrick
"Shaping" writes: > I've discovered the inspector recently. It is a good inspector, at least as > interesting as the Smalltalk inspectors. The GUI is not polished visually, > but it actually works better than most of the stuff that MS produces: there > is no flicker at all during resize, and al

Re: [Factor-talk] PEGs

2010-11-10 Thread Rupert Swarbrick
"Shaping" writes: > How do I use the keyboard keys to cycle back through old expressions? > Currently I have to scroll to the old position and double-click to re-enter > it. See http://docs.factorcode.org/content/article-gadgets-editors-commands.html Rupert P.S. Is there any way you can get out

Re: [Factor-talk] PEGs

2010-11-10 Thread Shaping
What is an 'immediate eval'? I ask because the following should only come from a usage, not a EBNF: ... ;EBNF usage: I'm using quasi-Smalltalk terminology, but I figure most of the ideas map, even though there is no byte-code stage in this compiler. "Immediate eva

Re: [Factor-talk] PEGs

2010-11-10 Thread Rupert Swarbrick
"Shaping" writes: > Doing the immediate eval leaves > > T{ parser f ~action-parser~ f 4820 } > > How am I expected to use this notation?. I read: "a parser instance", > constant f (false), "something to do with a parse and its action", another > false constant, number 4820. I can't do any rea

Re: [Factor-talk] PEGs

2010-11-10 Thread Chris Double
On Wed, Nov 10, 2010 at 10:24 PM, Shaping wrote: > > Doing the immediate eval leaves What is an 'immediate eval'? I ask because the following should only come from a usage, not a EBNF: ... ;EBNF usage: > T{ parser f ~action-parser~ f 4820 } > How am I expected to use this notation?.  I read: 

Re: [Factor-talk] PEGs

2010-11-10 Thread Shaping
EBNF: expr digit = '1' | '2' | '3' | '4' number = digit digit* expr = number (('+' | '-') number)* ;EBNF I was able to evaluate this expression immediately in the Listener and on a word I defined in my own vo

Re: [Factor-talk] PEGs

2010-11-10 Thread Shaping
[...] > Again there is the opacity problem. What does the "~vector~" mean? > And why would I ever want to read such a general description of a > 2-vector? It doesn't say much about what is in the tree. You're comp

Re: [Factor-talk] PEGs

2010-11-09 Thread Shaping
-talk@lists.sourceforge.net Subject: [Factor-talk] PEGs 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"

[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'