Sha256: e9c5de64207e94ade6f51e4b1afc0a0dcacca52bd7bf1243260d108506e36a85
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
= P-Lang P is a small ('pequena' in portuguese) functional programming language. fib = [1| 1], [2| 1], [n| fib(n-1) + fib(n-2)] fib(10) = Features Functions: fib = [1| 1], [2| 1], [n| fib(n-1) + fib(n-2)] fib(10) Objects: {rectangle: 10, 30} Pattern: {rectangle: x, y} = {rectangle: 10, 30} # => x = 10 # => y = 30 Messages: {integer: x} -> plus2 = [x+2] 3->plus2() # => 5 == Requirements * Ruby * Treetop == Install $ sudo install p-lang == Running $ p-lang your-program.p == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2010 Ígor Bonadio. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
p-lang-0.1.0 | README.rdoc |