Search the web
Sign In
New User? Sign Up
win32forth
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Reading numbers   Message List  
Reply | Forward Message #14366 of 14480 |
Re: [win32forth] Reading numbers

Hi John,

It will take me a while to work through this one. One thing that does come
to mind is that :: #line.bytes #line.addr cursor-line cursor-col
atflag.... to pick a few dont exist in my version.

This is a guess but is this something thats been adapted from "WinEd"

Prad


Yes, you are correct.
JP




Tue Jul 7, 2009 3:48 pm

japeters1939
Online Now Online Now
Send Email Send Email

Forward
Message #14366 of 14480 |
Expand Messages Author Sort by Date

Hi,   I have a text file which consists of a number of lines. Each line has 7 numbers which are tab-separated. I read a line from a file into a buffer in...
psg0912@...
psg0912
Offline Send Email
Jul 6, 2009
6:45 pm

... Hi Prad, ... it standard. I've done some similar stuff to what your trying to do. Here is a snippet of (ugly and verbose) code that you may be able to...
Thomas Dixon
phenomenaltom
Offline Send Email
Jul 6, 2009
7:41 pm

Try this No guarantee. I am not hte programmer but I have access to him. John A. Peters ... \ $Id: Getat.f,v 1.2 2009/04/17 22:23:48 brookline Exp $...
japeters@...
japeters1939
Online Now Send Email
Jul 7, 2009
3:59 am

Hi Thomas,   I used >number because its listed in the ANS standard word list. When I started off I had a vague idea of writing a wrod similar to the...
P G
psg0912
Offline Send Email
Jul 7, 2009
10:34 am

Hi John,   It will take me a while to work through this one. One thing that does come to mind is that :: #line.bytes  #line.addr  cursor-line  cursor-col ...
P G
psg0912
Offline Send Email
Jul 7, 2009
10:52 am

... Try ... -IF 2DUP 09 SCAN DUP>R -IF 1- SWAP 1+ SWAP THEN 2SWAP R> - EVALUATE >R RECURSE R> ELSE 2DROP THEN ; which should read any number...
George Hubert
georgeahubert
Offline Send Email
Jul 7, 2009
3:31 pm

... Just a question to the OP, would it make sense to read and process your numbers one at a time rather than stacking them? I'm not up with my Forth enough...
Rick Collins
gnuarm
Offline Send Email
Jul 7, 2009
3:48 pm

... <snip>> > ... Again to the OP, but you are right Rick. As pointed out by others in this thread, you can easily blow up the stack if your spreadsheet ...
Dennis Ruffer
DaRuffer
Offline Send Email
Jul 7, 2009
9:39 pm

Hi John, It will take me a while to work through this one. One thing that does come to mind is that :: #line.bytes #line.addr cursor-line cursor-col ...
japeters@...
japeters1939
Online Now Send Email
Jul 7, 2009
3:51 pm

I have been able to adapt the solutions given previously. Thomas's one was easier for me to understand. George's one was neat  ( not something I would have...
psg0912@...
psg0912
Offline Send Email
Jul 8, 2009
11:58 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help