I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)


From Rosetta Code
This programming language may be used to instruct a computer to perform a task.
Execution method: Compiled (machine code)
See Also:
Listed below are all of the tasks on Rosetta Code which have been solved using TMG.
Your Help Needed
If you know TMG, please write code for some of the tasks not implemented in TMG.
TMG (from transmogrifier) is an early compiler-compiler introduced by Robert McClure in the mid-1960s. Later it was ported and further developed by Doug McIlroy of Bell Labs to work on microcomputers PDP-7 and PDP-11 under the UNIX operating system. McIlroy's dialect of TMG (the Unix TMG) was included into the UNIX operating system from Version 2 to Version 6. It was the first high-level programming language running on UNIX.

TMG was used to implement:

TMG influenced:

  • B (via Unix TMG)
  • TROL (Translation-Oriented Language) of Donald Knuth
  • YACC


There are two ways to run Unix TMG on modern computers:

  • by using a PDP-11 emulator with the original Unix V6 image
  • by running a modern port of Unix TMG