ABC programming languageABC is an imperative language and programming environment from CWI, Netherlands. It is interactive, structured, high-level, and easy to learn and use. It is a general-purpose programming language which you might use instead of BASIC, Pascal, or AWK. It is not a systems-programming language but is good for teaching or prototyping. ABC has only five data types that can easily be combined; strong typing, yet without declarations; data limited only by memory; refinements to support top-down programming; nesting by indentation. Programs are typically around a quarter the size of the equivalent Pascal or C program, and more readable. ABC includes a programming environment with syntax-directed editing, suggestions, persistent variables and multiple workspaces and infinite precision arithmetic. An example function words to collect the set of all words in a document: HOW TO RETURN words document:\n PUT {} IN collection\n FOR line in document:\n FOR word IN split line:\n IF word not.in collection:\n INSERT word IN collection\n RETURN collection
\nInterpreter/compiler, version 1.05.02, by Leo Geurts, Lambert Meertens, Steven Pemberton External links\n*A Short Introduction to the ABC Language\n----\nThis article (or an earlier version of it) contains material from FOLDOC, used with permission. |
||
"The concept is interesting and well-formed, but in order to earn better than a 'C', the idea must be feasible." - A Yale University management professor in response to student Fred Smith's paper proposing reliable overnight delivery service (Smith went on to found Federal Express Corp.) |
