Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 722 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 722 Bytes

Build status

Macros

This is a simple library to parse expressions and evaluate them. A typical use case would be to provide a macro like functionality in an application.

Installation

The easiest way is to install via Nuget. Check out Nuget for more details on how to do this.

Examples

For example, the following code sample will generate a result of 15

var runner = new Runner();
runner.Scope.SetVariable(x, 5);

var result = runner.Evaluate("x+10");

There is also support for custom functions.