Tutorials and examples - vilinski/nemerle GitHub Wiki

Table of Contents

Introduction

This page lists some snippets of Nemerle code you may want to look at. If you have any examples to be submitted here -- please edit this page or contact us.

Short tutorials for writing example applications

The tutorials gathered here are meant to be used as an easy introduction to the the language, by stepping through the process of writing small applications.

[tT]utorial
There is also Grokking Nemerle -- a "book" covering most of the language.

Snippets

You can find various examples of Nemerle code in snippets directory in Nemerle source tree. You are welcomed to transform them into tutorials. Examples include:

These are also bundled with the source distribution.

Larger examples

There are also several more advanced examples there:

Sokoban solver

Sokoban -- Sokoban solver by Bartosz Podlejski

Nemerle Course programs

Examples done by students during the Nemerle course at the CS Institute in the Wroclaw University.

  • ERA-SMS-Sender -- allows sending an SMS to a Polish GSM provider ERA (uses a POP3 client). By Adrian Macal mel_on0 at o2 dot pl.
  • backup-tool.n -- a program for performing backups, using simple scripts. By Ryszard Trojnacki rysiek at menel dot com.
  • freedb.org client -- a simple program to download information from freedb.org database for an audio CD currently in the drive under Linux. By Wojtek Knapik d at hell dot art dot pl.
  • swf-calculator.n -- a simple calculator using System.Windows.Forms. By Marek Czajka marek_czajka at wp dot pl.
  • huffman -- huffman compression and decompression. By Ania Dwojak andzia200 at wp dot pl.
  • getmxbyname.n -- a class to find out the MX record for a domain. By Marcin Skórzewski pirol at o2 dot pl.

ICFP'2004 Programming Contest entry

In June 2004 there was a contest to create finite state automata controlling the ants. Our entry is now available here.

This year's contest page of our team is located here ICFPC2005.

The Great Language Shootout Examples

These are the few examples ported from the Win32 Computer Language Shootout. We didn't submit them yet, looking for volunteers to port more. When we have enough examples, we will also send them to the recently linked renewed shootout.

ntrace

This simple program will trace memory leaks in programs written in C. By Jacek Śliwerski.

Sioux HTTP server

A simplistic HTTP server. The main idea behind it is to serve web applications written in Nemerle. It already served as a subscription server for the XVIII-th FIT (a local conference) and later for the CSL 2004.

External projects created using Nemerle

Smart Mod Manager

Smart Mod Manager manages your collection of mods for the game S.T.A.L.K.E.R.: Shadow of Chernobyl and S.T.A.L.K.E.R.: Clear Sky. It allows you to quickly switch between them, add and remove mods in any order. Codeplex hosted project with high user popularity.

RiDL - Compiler tools

RiDL is a set of tools to simplify building compilers using Nemerle. It includes a lexical analyzer generator and a parser generator.

It is created by Kojo Adams and uses BSD Licence.

Asper

Asper is a text editor and IDE for Nemerle written in Nemerle.

Terraineer

Terraineer is a small utility which can be used to generate and to learn to generate heightmaps. It can be also used as a little look-up as to how to use gtk# and plugins with nemerle.

⚠️ **GitHub.com Fallback** ⚠️