The library include a command line application that evaluates expressions in different ways. Sources are located here. The executable is named xeval.exe. This program uses Command Line Parser Library.

Standard Input
By default the application evaluates standard input:
$ echo "((1 * .2) + 9)" | xeval
or
$ cat exprlist.txt | xeval

Command Line
Evaluates the first argument:
$ xeval "1 + 3 * (4.3 * (4.9 / 1))"
or explicitly from a file
$ xeval --filename exprlist.txt

Interactive Mode
$ xeval --interactive -q
>> 1 + 2
3
>> 3 * 3
9

Last edited Dec 27, 2012 at 9:25 AM by gsscoder, version 3

Comments

No comments yet.