Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What do you call source code valid in several languages? There was a specific word for it and really crazy examples.

share|improve this question

closed as primarily opinion-based by gnat, MichaelT, World Engineer Mar 17 '14 at 14:26

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

Going in the opposite direction, here is a pretty amazing list of languages that compile to JavaScript. – Rein Henrichs Jun 9 '11 at 0:19
up vote 11 down vote accepted

The word you are looking for Polyglot

a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.

Generally polyglots are written in a combination of C (which allows redefinition of tokens with a preprocessor) and a scripting language such as Lisp, Perl or sh...

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.