otac0n / Pegasus

A PEG parser generator for .NET that integrates with MSBuild and Visual Studio.

Home Page:http://otac0n.com/Pegasus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support @using static

madebyjeffrey opened this issue · comments

I have a number of utility functions that would be very handy to be imported using something like

@using static ....

The functions would be available in actions.

You should be able to do this:

@using { static string }
@using "static DateTime"

a = x:. &{ IsNullOrEmpty(x) };
b = "now" { UtcNow };

I can confirm that this works great. Thank you.