Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
TECO (text editor)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Description== TECO is not only an editor but also an [[interpreter (computer software)|interpreted]] [[programming language]] for text manipulation. Arbitrary programs (called "macros") for searching and modifying text give it great power. Unlike [[regular expressions]], however, the language was [[Imperative programming|imperative]], though some versions had an "or" operator in string search. TECO does not really have [[syntax]]; each character in a program is an imperative command, dispatched to its corresponding routine. That routine may read further characters from the program stream (giving the effect of string arguments), change the position of the "program counter" (giving the effect of control structures), or push values onto a value stack (giving the effect of nested parentheses). But there is nothing to prevent operations like jumping into the middle of a comment, since there is no syntax and no parsing. TECO ignores [[letter case|case]] and [[whitespace character|whitespace]] (except [[tab character|tab]], which is an insertion command).<ref>{{cite web |quote=<tab>text$, Inserts specified text preceded by a tab. |url=http://www.avanthar.com/healyzh/teco/TecoPocketGuide.html |title=TECO Pocket Guide}}</ref> A satirical essay on computer programming, "[[Real Programmers Don't Use Pascal]]", suggested that a common game for TECO fans was to enter their name as a command sequence, and then try to work out what would happen. The same essay in describing TECO coined the [[acronym]] ''YAFIYGI'', meaning "You Asked For It You Got It" (in contrast to [[WYSIWYG]]).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)