C# Eval()

$14
Publisher GameDevWare
File size 198.61kB
Number of files 5
Latest version 2.3.0
Latest release date 2023-03-27 08:46:38
First release date 2016-03-30 08:52:26
Supported Unity versions 2018.4.2 or higher

Easy to use C# expression parser and executor.
This package includes source code of parser, compiler and examples.


[Source Code] [Documentation] [Forum Thread]


Use cases:
- Scriptable logic
- Math evaluation (a basic arithmetic)
- Dynamic code execution
Based on System.Linq.Expressions. Documentation and examples are included.


Compatible with:
- Unity 3, Unity 4, Unity 5, Unity 2017, Unity 2018
- PC, Mac, Linux, Unity Editor
- Web Player, WebGL, Windows Store
- iOS, Android, Windows Phone
- IL2CPP


Parser features:
- Arithmetic operations
- Bitwise operations
- Logical operations
- Conditional operator
- Null-coalescing operator
- Method/Delegate/Constructor call
- Property/Field access
- Indexers
- Casting and Conversion
- Is Operator
- As Operator
- TypeOf Operator
- Default Operator
- Expression grouping with parentheses
- Checked/Unchecked scopes
- Aliases for Built-In Types
- Power operator **
- Lambda expressions
- "true", "false", "null"


Supported expressions:
- Any non-lambda expression from System.Linq.Expressions v.3.5.
- System.Func<> and System.Action<> only lambda expressions due limitation of static code compliler.

Top Publisher Assets