-
Notifications
You must be signed in to change notification settings - Fork 22
Home
Fancy is a dynamic, pure object-oriented programming language inspired by Smalltalk, Ruby, Io and Erlang.
The syntax is a mix of those languages but should be most familiar to Smalltalk and Ruby programmers.
First of all, you’ll need Rubinius installed on your system. The easiest way to do so is installing it via rvm ( http://rvm.beginrescueend.com/ ):
We suggest using the latest version of Rubinius from the git repository (rbx-head). You’ll need at least version 1.2.1 though.
$ rvm install rbx-head
Then:
$ rvm use rbx-head
Now, get the latest code here from Github.
$ git clone git://github.com/bakkdoor/fancy.git
$ cd fancy
Then build fancy and let the FancySpecs run
$ rake && rake test
You should see all tests pass. If that’s not the case, please do file an issue here on Github.
You can try out some of the example files in the examples/ directory.
$ bin/fancy examples/hello_world.fy
We’re working on a tutorial. But for now, you can have a look at the short syntax introductions in the wiki here and here
Also, there’s a RosettaCode.org page dedicated to Fancy, including some common code samples written in Fancy compared to other languages.
Fancy tries to be as much Fancy as possible. This means that its standard library is in great part written in itself. You can have a look at the lib/ code if you want to get a feeling for how fancy feels and works.