|
uCalc Message Forums
![]() Official Announcements
![]() UCalc FMP interactive interpreter
|
| next newest topic | next oldest topic |
| Author | Topic: UCalc FMP interactive interpreter |
|
Daniel Corbier Administrator |
Previous UCalc FMP betas included a demo that allowed the user to evaluate single expressions. To showcase the capabilities of the new Syntax feature, an interpreter was created. From the interpreter prompt, you can interactively define functions and variables, evaluate expressions, and execute single or multi-statement expressions, which may span several lines. The download comes with a PowerBASIC-flavored scripting language. (VB users will also find the syntax familiar). Other kinds of languages can easily be implemented as well. To load another language, open the ucalc.uc text file, and edit the line that says LoadLibrary(“PowerBas.DLL”), and replace PowerBas.DLL with a language DLL that you have designed. A simple language can even be designed entirely using Syntax and Macro definitions that can be defined in a text file that can be loaded by the interpreter. If your syntax definitions are in a text file called MyLang.uc for instance, then use Load(“MyLang.uc”). The following download link contains all the necessary files for the interpreter to run. http://www.ucalc.com/mathparser/beta/ucintp01.zip (156,422 bytes) You will likely want to also download UCalc FMP itself to read the documentation for the new syntax feature (see help file topics ucDefine, and ucDefineSyntax) For more info on UCalcFMP click on www.ucalc.com/ubb/Forum1/HTML/000014.html ------------------ IP: Logged |
All times are Eastern Time (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 2000-2007 by Daniel Corbier
Powered by: Ultimate Bulletin Board, Version 5.42a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.