Skip to content

amcaplan/brainruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

BrainRuby

Welcome to BrainRuby, the esoteric programming language which is basically just Ruby.

Using BrainRuby, you can write any Ruby program using just 10 non-alphanumeric characters:

$#<>{}/+`"

See the examples directory for Hello World and Fizzbuzz programs written in BrainRuby.

You shouldn't try to write BrainRuby yourself. The compiler will do the hard work for you, turning your Ruby code into BrainRuby code. To compile, run the generator with 2 arguments:

  1. The name of the file to compile
  2. The name of the output file

For example:

ruby generator.rb /path/to/some/file.rb /path/to/output/file.rb

You can then run the output file as usual:

ruby /path/to/output/file.rb

Curious how it works? I made an explanatory video.

That's it! Have fun!

About

Ruby... Optimized for Programmer Sadness!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages