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 

C++ Sample Code

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


The demo is a console application with nine examples.

  • Command Line lets you key in expressions for immediate resolution. View sample code.

  • External Operator Demo shows how to set up your own custom operators. View sample code.

  • External Variable Demo shows how to create variables in Elzed using API calls, and how to link variables in your code to Elzed variables. View sample code.

  • Recursive Operator Demo shows how to set up recursive external operators. View sample code.

  • Multiple Context Demo show how to create and manage multiple Elzed contexts. View sample code.

  • Select-Case Demo shows how to use the Elzed select-case structure. View sample code.

  • Internal Loop Performance shows how fast Elzed executes an operator with an internal loop. The results are in MIPS (Million Interations Per Second). This unit of measurement is 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.) View sample code.

  • External Loop Performance shows how fast Elzed executes an operator from within a loop in your code. As in the previous example, results are in MIPS. View sample code.

  • Life Game Demo shows how to load operators from text files, and shows an example of a complex operator. View sample code.

Type in the number of the demo you want to run and press enter. At any demo prompt, pressing return or enter without any other entry will terminate the demo (except for the Life Game; press backslash and enter to terminate). Select option 99 from the demo menu to end the sample program.

The 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