Re: Visual Basic as an Implementation Language

"Quinn Tyler Jackson" <qjackson@wave.home.com>
29 Sep 1998 15:36:56 -0400

          From comp.compilers

Related articles
Visual Basic as an Implementation Language ksalter@execulink.com (Steven Salter) (1998-09-26)
Re: Visual Basic as an Implementation Language qjackson@wave.home.com (Quinn Tyler Jackson) (1998-09-29)
Re: Visual Basic as an Implementation Language brennan@home.com (Michael J. Brennan) (1998-09-29)
Re: Visual Basic as an Implementation Language dwight@pentasoft.com (1998-09-29)
| List of all articles for this month |

From: "Quinn Tyler Jackson" <qjackson@wave.home.com>
Newsgroups: comp.compilers
Date: 29 Sep 1998 15:36:56 -0400
Organization: Compilers Central
Keywords: Basic

>I created a simple language to allow the users of an application to
>specify some calculations they would like performed. For now, they
>never see the language, just a fancy front end from which they pick
>fields, functions and operators, and enter numbers.
>
>Since the application is written in Visual Basic, I wrote the
>interpreter in VB also. It takes the expression, looks up the
>appropriate values in the database and gives back an answer, or
raises
>and error if there is no appropriate record in the database.


I wrote a math evaluator in BASIC (QuickBASIC, Visual Basic, then
ported to PowerBASIC, finally ported to C++) that can deal with:


        1) user defined functions
        2) trig
        3) complex numbers
        4) arrays


The BASIC versions of ARDAF can be obtained from:


        ftp://qtj.net/pub/source/powerbasic/rdf/


I released the BASIC source into the public domain, so feel free to
rip whatever you might find useful from it.


I believe that version 1.4 was the last directly Microsoft-flavor
BASIC compatible version, but some of the nicer features are available
in 2.11.


The C++ version (which has some implementation enhancements, such as
constant folding), can be obtained from:


        ftp://qtj.net/pub/source/cpp/lpm_src.zip


the above requires:


        ftp://qtj.net/pub/source/cpp/shu_src.zip
--
Quinn Tyler Jackson


email: qjackson@wave.home.com
url: http://www.qtj.net/~quinn/
ftp: qtj.net
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.