Skip to content

v2.9.0 Preview Release

Pre-release
Pre-release
Compare
Choose a tag to compare
@qwertie qwertie released this 25 Dec 16:40
· 102 commits to master since this release

There are numerous changes in this release. One of the most notable is a new macro macro for writing macros. Example:

using System.Text.RegularExpressions;

macro countDigits($(str && str.Value is string strValue))
{
    var regex = new Regex("[0-9]");
    return LNode.Literal(regex.Matches(strValue).Count);
}
int i = countDigits("I have 25 apples an 7 bananas");

// Generated from Demo.ecs by LeMP 2.9.0.0.
using System.Text.RegularExpressions;

int i = 3;