Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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 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

1 Answer 1

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.