Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Run Forth words code on your web page
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jimmyscratchlab jimmyscratchlab  
View profile  
 More options Nov 2 2012, 5:25 pm
Newsgroups: comp.lang.forth
From: jimmyscratchlab jimmyscratchlab <jimmyscratch...@gmail.com>
Date: Fri, 2 Nov 2012 14:25:04 -0700 (PDT)
Local: Fri, Nov 2 2012 5:25 pm
Subject: [ Forth.js ] Run Forth words code on your web page
You can download demo page form http://forthjs.googlecode.com/files/forthjstest.zip

                <p>9*9:</p>
        <p class="forth" forthcode=": x 9 for cr r@ 9 for dup r@ * 2 .r space next drop next ; x">nil</p>
        <p>fib 1:</p>
        <p class="forth" forthcode=" : fib1 1 1 begin over . swap over + dup 10000 > until 2drop ; fib1">nil</p>
        <p>fib 2:</p>
        <p class="forth" forthcode=" fib2 ">nil</p>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Wills  
View profile  
 More options Nov 2 2012, 5:49 pm
Newsgroups: comp.lang.forth
From: Mark Wills <forthfr...@gmail.com>
Date: Fri, 2 Nov 2012 14:49:49 -0700 (PDT)
Local: Fri, Nov 2 2012 5:49 pm
Subject: Re: Run Forth words code on your web page
On Nov 2, 9:25 pm, jimmyscratchlab jimmyscratchlab

<jimmyscratch...@gmail.com> wrote:
> You can download demo page formhttp://forthjs.googlecode.com/files/forthjstest.zip

>                 <p>9*9:</p>
>         <p class="forth" forthcode=": x 9 for cr r@ 9 for dup r@ * 2 .r space next drop next ; x">nil</p>
>         <p>fib 1:</p>
>         <p class="forth" forthcode=" : fib1 1 1 begin over . swap over + dup 10000 > until 2drop ; fib1">nil</p>
>         <p>fib 2:</p>
>         <p class="forth" forthcode=" fib2 ">nil</p>

This is very nice. Is there any English documentation? The JavaScript
is unreadable as written. It would be nice to get some docs. I'm sure
I could use it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jimmyscratchlab jimmyscratchlab  
View profile  
 More options Nov 9 2012, 10:26 am
Newsgroups: comp.lang.forth
From: jimmyscratchlab jimmyscratchlab <jimmyscratch...@gmail.com>
Date: Fri, 9 Nov 2012 07:26:36 -0800 (PST)
Local: Fri, Nov 9 2012 10:26 am
Subject: Re: Run Forth words code on your web page
M.R.W Wills於 2012年11月3日星期六UTC+8上午5時49分50秒寫道:
> On Nov 2, 9:25 pm, jimmyscratchlab jimmyscratchlab

> <jimmyscratch...@gmail.com> wrote:

> > You can download demo page formhttp://forthjs.googlecode.com/files/forthjstest.zip

http://forthjs.googlecode.com/files/forthjstest.zip
I update it.
This demo page is a very simple document.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jimmyscratchlab jimmyscratchlab  
View profile  
 More options Nov 20 2012, 4:12 pm
Newsgroups: comp.lang.forth
From: jimmyscratchlab jimmyscratchlab <jimmyscratch...@gmail.com>
Date: Tue, 20 Nov 2012 13:12:41 -0800 (PST)
Local: Tues, Nov 20 2012 4:12 pm
Subject: Re: Run Forth words code on your web page
Idea of OOP in the Forth.js

class Vehicle weight power travelon
instance Vehicle MyBike
20 to MyBike.weight
new MyCar
2000 MyCar price
MyCar.price  
1000 +to MyCar.price
: move bra bra bra  ;
assign  move  MyCar.move
:method MyCar.stop bra bra bra ;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "OOP words" by jimmyscratchlab jimmyscratchlab
jimmyscratchlab jimmyscratchlab  
View profile  
 More options Nov 21 2012, 1:43 pm
Newsgroups: comp.lang.forth
From: jimmyscratchlab jimmyscratchlab <jimmyscratch...@gmail.com>
Date: Wed, 21 Nov 2012 10:43:05 -0800 (PST)
Local: Wed, Nov 21 2012 1:43 pm
Subject: [ Forth.js ] OOP words
How to use Forth.js OOP words
http://jimmyscratchlab.blogspot.tw/2012/11/forthjs-oop.html

<p class="forth" forthcode=' .( (Test1 define class ) ) class Vehicle weight power travelon  end_class see Vehicle '>nil</p>

(Test1 define class )
Scanning Vehicle
(000113) doInstanceAllAttr
(000114) weight
(000115) power
(000116) travelon
(000117) exit

jimmyscratchlab jimmyscratchlab於 2012年11月21日星期三UTC+8上午5時12分41秒寫道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »