Skip to content
FRUITLOOP is an implementation of the LOOP programming language
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
nbproject
.gitignore
MIT-LICENSE
README.md
Rakefile
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.