PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Nemerle

Nemerle

Nemerle is a programming language created in 2003.

Nemerle is a general-purpose high-level statically typed programming language designed for platforms using the Common Language Infrastructure (.NET/Mono). It offers functional, object-oriented (OO) and imperative features. It has a simple C#-like syntax and a powerful metaprogramming system. Read more on Wikipedia...

#186on PLDB 19Years Old 406.0Users

Example code from hello-world:

class Hello { static Main () : void { System.Console.WriteLine ("Hello World"); } }

Example code from the Hello World Collection:

// Hello World in Nemerle (a functional programming language for .NET) System.Console.WriteLine("Hello World");

Example code from Linguist:

using System.Console; module Program { Main() : void { WriteLine("Hello world"); } }

Example code from Wikipedia:

using System; using System.Runtime.InteropServices; class PlatformInvokeTest { [DllImport("msvcrt.dll")] public extern static puts(c : string) : int; [DllImport("msvcrt.dll")] internal extern static _flushall() : int; public static Main() : void { _ = puts("Test"); _ = _flushall(); } }

Language features

Feature Supported Example Token
Strings โœ“
"Hello world"
"
Print() Debugging โœ“ System.Console.WriteLine
Line Comments โœ“
// A comment
//
Units of Measure โœ“
def m3 = 1 g;
def m4 = Si.Mass(m1);

WriteLine($"Mass in SI: $m4, in CGS: $m3");

def x1 = Si.Area(1 cm * 10 m);

WriteLine($"Area of 1 cm * 10 m = $x1 m");
Semantic Indentation โœ“
Comments โœ“

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements ยท Email ยท GitHub