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
>
> 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.
>
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 ;
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
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.
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
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
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'
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
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
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
11 matches
Mail list logo