Hi list,

I would post this to concatenative, but my membership there has been pending
for over a month...

As some of you know, I've been working on a Joy -> Factor compiler and
interpreter, and I have
successfully gotten the compiler to compile Manfred's lazy lists library.
I'm working on getting
all his provided Joy library files to work correctly, and then maybe I'll
release it or something.

The source is at: http://github.com/inforichland/Joy/tree/master

An example session:

( scratchpad ) USING: joy.compiler joy.parser io.encodings.utf8 io.files ;
( scratchpad ) "lazlib.joy" ascii file-contents
Data Stack: ...
( scratchpad ) parse-joy compile call

This will produce a Factor quotation (as well as have defined all the words
defined in that file), so you want to 'call' (note above) the quotation.
If you want to run code using previously used DEFINEs, then call "Squares 15
Take" parse-joy @compile call (for example).

Feel free to try it out !

The "interpreter" is also kinda working, but has fewer words builtin than
the compiler.

If you have any comments or question, feel free to let me know; I'm also
inforichland on #concatenative

Cheers,
 - Tim

PS Slava, when you think it's ready enough, I'll add it to my /extra factor
tree @ github, and let you know so you can put it in the main repo.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to