FANDOM


Nanocode is a C# variant. It is intended to be very compact.

CodeEdit

 != private
 &= protected
 \= public
 <<namespace>>= using clause
 ?= Class
 %= Void
 $= Namespace
 ~= Static

ExampleEdit

NanocodeEdit

<<System>>;
$HelloWorld
{
\?HelloWorld
{
\~% Hi()
{
Console.WriteLine("Hi!");
}
}
}

C#Edit

using System;
namespace HelloWorld
{
public class HelloWorld
{
public static void Hi()
{
Console.WriteLine("Hi!");
}
}
}