Skip to content

TomTriple/fruitloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

FRUITLOOP is an implementation of the LOOP programming language

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages