Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Crude is a Ruby (tiny subset) -> C++ compiler
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
README.txt
TODO.txt
compile_and_run.bat
crude.rb

README.txt

Crude is a Ruby -> C++ compiler. In fact, it could be called a language by itself (some commands have C-specific meanings), except that it's parsed using ruby_parser.

Obviously, it only supports a tiny subset of Ruby - just the basic language features and a couple of iterators. But it works. You can check out the examples.

It's called Crude because crude is exactly what it is. The name is also vaguely reminiscent of names of C and Ruby. (I know, I suck at puns.)
Something went wrong with that request. Please try again.