Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

FRUITLOOP is an implementation of the LOOP programming language

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 nbproject
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 fruitloop.gemspec
README.md

FRUITLOOP

Implementation of the LOOP programming language which compiles to JavaScript. See: http://de.wikipedia.org/wiki/LOOP-Programm.

DEPENDENCIES

  • Ruby >= 1.9.2p290, not tested with other versions
  • Node.js >= 0.5.6; the binary is expected to be located at /usr/local/bin/node

HOWTO

  • Run "ruby main.rb add.loop" to compile and execute "add.loop". The same goes for the other examples.
  • The result of a computation will always be located in variable "xa".

GRAMMAR

  • S ::= P$
  • P ::= id A X | loop id do P end X
  • A ::= : B
  • B ::= = C
  • C ::= id D | number
  • D ::= + number | - number
  • X ::= ; P X | Epsilon

License

FRUITLOOP is released under the MIT license: www.opensource.org/licenses/MIT

Something went wrong with that request. Please try again.