A C# code generator using Roslyn, extracted from Wasabi v3.1.0. MIT licensed.
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AST
Example
Properties
was_out
.gitignore
App.config
BuiltIns.cs
ClrImporter.cs
CodeGenVisitor.cs
CompileException.cs
Compiler.cs
ICodeGenVisitor.cs
LICENSE
Program.cs
README.md
RoslynExtensions.cs
RoslynGenerator.cs
WasabiRoslynGenerator.csproj
WasabiRoslynGenerator.sln
packages.config

README.md

Wasabi RoslynGenerator

This is the very back end of the Wasabi-to-C# compiler from Fog Creek Software. It converts a Wasabi abstract syntax tree (AST) into C# code.

The CLR importer, lexer, parser, interpreter, type checker, language runtime, JavaScript generator, and other components of Wasabi are missing.

It is intended to be used as an example for how to write a C# generator using Microsoft Roslyn.

Build the solution in Visual Studio, then run .\Example\bin\Debug\Example.exe from the root of the repository.

A very tiny program will be generated in was_out.