Home > ruby2brat

ruby2brat

Ruby2brat is a project mainly written in Ruby, it's free.

Convert Ruby source into Brat

THIS PROJECT IS NO LONGER MAINTAINED

Why? Because its original purpose was to convert Brat's parser (in Ruby) to Brat. But (besides that being silly) things have gone a different direction now and so I doubt much more will happen with this code.

Ruby2Brat

This is a very simplistic translator which converts (some subset of) Ruby code to Brat code.

Build and Install

gem build ruby2brat.gemspec
gem install ruby2brat*.gem

Run

ruby2brat will read in Ruby code from stdin and spit back Brat code on stdout. Piping it in works well:

cat test.rb | ruby2brat > test.brat

Test

From the base directory:

ruby test/test.rb