-
Notifications
You must be signed in to change notification settings - Fork 89
Tutorials and examples
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.
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.
- Don't Panic! - Nemerle Basics Explained -- a simple tutorial covering basic concepts of the Nemerle language.
- Hashtables and foreach -- presentation of how type inference makes code cleaner.
- Building a text editor using GTK#.
- System.Windows.Forms tutorial
- Macros -- the basics of meta-programming in Nemerle.
- Using ASP.NET with Nemerle.
- Remoting -- presents a technique of accessing remote objects on the server.
- PInvoking -- gives insight on how to use native (unmanaged) libraries from Nemerle.
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:
- lcs.n -- short program computing the longest common substring
- sql.n -- an example of database connectivity using Nemerle macros
- suffix.n -- suffix trees
- form.n -- a Windows.Forms example
- myPoll.n -- an example of a CGI application connecting to a PostgreSQL database
- power-race.n -- a ncurses-based "game". Screenshot.
- boyer-moore.n -- a Boyer-Moore algorithm
- knuth-morris-pratt.n -- a Knuth-Morris-Pratt algorithm
- nondec-subseq.n -- the longest non-decreasing subsequence
- rachunki.n -- a billing generator for a conference
- shift-or.n -- a shift-or text searching algorithm
There are also several more advanced examples there:
Sokoban -- Sokoban solver by Bartosz Podlejski
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.
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.
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.
This simple program will trace memory leaks in programs written in C. By Jacek Śliwerski.
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.
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 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 is a text editor and IDE for Nemerle written in Nemerle.
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.