v2.9.0 Preview Release
Pre-release
Pre-release
·
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;