Thread View: net.micro.pc
1 messages
1 total messages
Started by Davis
Fri, 07 Nov 1986 19:00
parsing functions in BASIC
Author: Davis
Date: Fri, 07 Nov 1986 19:00
Date: Fri, 07 Nov 1986 19:00
32 lines
1851 bytes
1851 bytes
I have written a program in machine language (for the APPLE) that calls the BASIC parsing and evaluation routines so that I am able to type in a function through an INPUT statement and evaluate it as though the function was entered as a DEF FN statement. (There are some important differences, see below). I have a need for a similar feature for the IBM PC. Such a program would allow someone to enter a function through an INPUT statement and have the BASIC program plot the function (for example). The advantage of this method over modifying the BASIC program to take the function and insert it into the BASIC program appending a DEF FN infront of it is that any change to a BASIC program erases current values of the variables (at least in APPLESOFT). This is UNDESIRABLE for a plotting program since the graphing parameters would need to be re-entered everytime the function was changed. Please send any thoughts that you might have on how to do this to me via E-Mail (since I rarely read this group). The answer does not need to be executable in BASIC but a BASIC solution is desirable for ease of porting. ( I hear that Turbo-Pascal has/sells a function evaluation package.) If there is sufficient interest if how to do this then I will post solutions to the net. Thanks Mike Davis ihnp4!ihuxy!jmdavis
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads