mawkgen 0.0.3

dotnet add package mawkgen --version 0.0.3
                    
NuGet\Install-Package mawkgen -Version 0.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="mawkgen" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="mawkgen" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="mawkgen" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add mawkgen --version 0.0.3
                    
#r "nuget: mawkgen, 0.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package mawkgen@0.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=mawkgen&version=0.0.3
                    
Install as a Cake Addin
#tool nuget:?package=mawkgen&version=0.0.3
                    
Install as a Cake Tool

mawkgen

mawk 소스제너레이터

dotnet run - <<EOF
#:package Microsoft.Net.Compilers.Toolset@5.3.0
#:package mawkgen@0.0.2
using mawkgen;

Temp.Hello();

[Mawk("""
BEGIN {
    print "public static void Hello() => Console.WriteLine(\"Hello, Mawk!\");"
}
""")]
static partial class Temp{}
EOF

dotnet run - <<EOF
#:package Microsoft.Net.Compilers.Toolset@5.3.0
#:package mawkgen@0.0.2
using mawkgen;

Console.WriteLine(string.Join(", ", Temp.Ints()));
Temp.b = 10;
Console.WriteLine(string.Join(", ", Temp.Ints()));

[Mawk("""
/#region Ints$/ { Ints=1; print "public static partial int[] Ints() => [" ; next }
/#endregion Ints$/ { Ints=0; print "];"; next }
Ints { print "  " \$4 "," }
""")]
static partial class Temp
{
    #region Ints
    public static int a = 1;
    public static int b = 2;
    public static int c = 3;
    #endregion Ints

    public static partial int[] Ints();
}
EOF
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.3 99 8/25/2026
0.0.2 101 8/20/2026
0.0.1 114 8/17/2026