KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 Examples 

Visual Basic Sample Code

The Elzed distribution contains a ready-to-run demonstration VB program called "Elzed Demo". Double click on the program and you will see:


The demo is a simple form application with a few examples. Enter an expression in the text box, and click evaluate to get the answer. You are not constrained to a single line; go ahead and try something elaborate!

The API Test will not appear to do anything. I intended this to be used in debug mode, so you could see Elzed operating at a low level. Take a look at the sample code (below) and you'll see what I mean.

Speed Test is just what it purports to be. Select an expression from the dropdown and click the button. The results are in MIPS (Million Interations Per Second). Both this unit of measurement and several of the expression choices are from Gary Beene's excellent review of parsers. I think you'll find his analysis to be insightful and comprehensive. (Though, I hasten to point out, Elzed is not included. Bummer.)

You will also want to review this code from the Elzed VB Sample package:

  • ElzedDemo.vb is the main module for the depicted sample program. View sample code.

  • APITesting.vb contains a number of low-level Elzed API calls best viewed in debug mode. View sample code.

  • ExtFunctions.vb shows a single example of an external function that can be linked into Elzed. View sample code.

The VB source code for the program can be found in the "Elzed Sample Code" folder, along with supporting files to build the sample program.



  Copyright  ©  MMXXIV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy