TECO, aka Text editor character oriented, is a programming language created in 1963.
#1236on PLDB | 61Years Old |
TECO (; originally an acronym for [paper] Tape editor and corrector, but later Text editor and corrector, then Text editor character oriented) is a text editor originally developed at the Massachusetts Institute of Technology (MIT) in the 1960s, after which it was modified by many other people. TECO was a direct ancestor of Emacs, which was originally implemented in TECO macros.. Read more on Wikipedia...
IHello, world!
$HT$
!Hello World in TECO
!The $ symbol below wouldn't actually be a printing character -
!it's the [escape] character, \u001b!
FTHello World$
0uz 聽! clear repeat flag聽!
<j 0aua l 聽! load 1st char into register A聽!
<0aub 聽! load 1st char of next line into B聽!
qa-qb"g xa k -l ga -1uz ' 聽! if A>B, switch lines and set flag聽!
qbua 聽! load B into A聽!
l .-z;> 聽! loop back if another line in buffer聽!
qz;> 聽! repeat if a switch was made last pass聽!