WikiPedia says:
A compiler is a computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable program.
Would this be called a simple ruby to javascript compiler if I convert some ruby code into javascript code.
For a simple example consider this ruby code:
def hello_world
   return 1
end
So in javascript if I modify this code using regex and make it something like:
function hello_world()
{
   return 1;
}
and run this bit of code:
eval(codeString);
(I know this is a very small piece of code but I had to give a simple example)
 
    