Skip to content

Releases: stadlerb/ikvm-arithmetics-cli

First Release

18 Oct 13:45
Compare
Choose a tag to compare
First Release Pre-release
Pre-release

Binary distribution of the Xtext on .NET example

Installation:

Unzip the downloaded file, e.g. to C:\apps on Windows.

Usage

The execulable file is called calculate.exe.
It can be used either with in-line expressions using the -e switch or with input files using the -f switch.
For importing modules, the files containing the module have to be added using the -i switch (multiple files separated by colons).

Examples

    C:\apps\calculate>calculate.exe -e "2 + 3"
    - 2 + 3: 5

    C:\apps\calculate>calculate.exe -i example\polynomialexample.calc:example\linearexample.calc -e "examplepolynomial(4,7) ; examplepolynomial(weightedsum(3, 4), 19)"
    - examplepolynomial(4, 7): 73
    - examplepolynomial(weightedsum(3, 4), 19): 1665

    C:\apps\calculate>calculate.exe -i example\linearexample.calc -f example\evaluation.calc
    - weightedsum(10, 12): 80
    - weightedsum(0, 1): 5
    - (weightedsum(1, 0)): 2
    - 15 * 44 + 12: 672