add Limbo: language, samples

This commit is contained in:
Alex Efros
2015-04-05 02:34:02 +03:00
parent 3e06b95f98
commit 35f2699eb3
4 changed files with 94 additions and 0 deletions

13
samples/Limbo/lock.m Normal file
View File

@@ -0,0 +1,13 @@
Lock: module
{
PATH: con "/dis/lib/lock.dis";
Semaphore: adt {
c: chan of int;
obtain: fn(nil: self ref Semaphore);
release: fn(nil: self ref Semaphore);
new: fn(): ref Semaphore;
};
init: fn();
};