Let's try first to use M-x run-factor mode (or C-c z) with source code from
palindrome example in tutorial "Your first program" from help:
USING: accessors kernel math sequences unicode.case unicode.categories
;
IN: palindrome
: normalize ( str -- newstr ) [ Letter? ] filter >lower ;
: palindrome? ( string -- ? ) normalize dup reverse = ;
In fuel listener M-x run-factor and then type:
( scratchpad ) USE: palindrome
Loading resource:work/palindrome/palindrome.factor
It's good. Let's try to make some error - eliminate ? from word palindrom?:
: palindrome? ( string -- ) normalize dup reverse = ;
and then:
( scratchpad ) "palindrome" reload
Loading resource:work/palindrome/palindrome.factor
:errors - show 1 compiler errors
( scratchpad ) :errors
==== resource:work/palindrome/palindrome.factor
resource:work/palindrome/palindrome.factor: 7
Asset: palindrome?
Stack effect declaration is wrong
inferred (( x -- x ))
declared (( string -- ))
:errors - show 1 compiler errors
It's OK.
Let's try to use instead of M-x run-factor connection to image with 'M-x
connect-to-factor' in Emacs.
1. From gui listener type "fuel" run.
2. from emacs - 'M-x connect-to-factor'
3. in fuel listener (with error in word palindrom?):
( scratchpad ) USE: palindrome
Loading resource:work/palindrome/palindrome.factor
( scratchpad ) "ddd" palindrome?
continuation
data { "ddd" ~not-compiled~ }
call CS{ ~quotation~ ~quotation~ 4 handle-client handle-client f...
retain { ~decoder~ ~encoder~ ~array~ }
name V{ H{ ~array~ ~array~ ~array~ ~array~ ~array~ ~array~ ~array~...
catch V{ ~continuation~ ~continuation~ ~continuation~ ~continuation~...
Type :help for debugging help.
It's not OK. I suppose it's a bug.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk