Accorging to wikipedia
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.
But could the following piece of code, be considered a compiler?
class S {
public static void main( String ... args ) {
if( "1".equals(args[0]) ) {
System.out.println("echo Hi");
}
}
}
I know this is an oversimplification, but, when can you say a given program is actually a "compiler" ?