encyclopegia.org

IMP (programming language)

IMP is an early systems programming language that was developed by Edgar T. Irons in the late 1960s through early 1970s, at the National Security Agency (NSA). Unlike most other systems languages, IMP supports syntax-extensible programming. Even though , IMP excludes many defining features of that language, while supporting a very non-ALGOL-like one: syntax extensibility. A compiler for IMP existed as early as 1965 and was used to program the CDC 6600 time-sharing system, which was in use at the Institute for Defense Analyses since 1967. Although the compiler is slower than comparable ones for non-extensible languages, it has been used for practical production work. IMP compilers were developed for the CDC 6600, Cray, PDP-10 and PDP-11 computers. Important IMP versions were IMP65, IMP70, and IMP72.

IMP is an early systems programming language that was developed by Edgar T. Irons in the late 1960s through early 1970s, at the National Security Agency (NSA). Unlike most other systems languages, IMP supports syntax-extensible programming. Even though , IMP excludes many defining features of that language, while supporting a very non-ALGOL-like one: syntax extensibility. A compiler for IMP existed as early as 1965 and was used to program the CDC 6600 time-sharing system, which was in use at the Institute for Defense Analyses since 1967. Although the compiler is slower than comparable ones for non-extensible languages, it has been used for practical production work. IMP compilers were developed for the CDC 6600, Cray, PDP-10 and PDP-11 computers. Important IMP versions were IMP65, IMP70, and IMP72. ==Extensible syntax in IMP72== Being an extensible syntax programming language, IMP allows a programmer to extend its syntax, although no specific means are provided to add new data types or structures to it. To achieve its syntax-extensibility, IMP uses a powerful parse algorithm based on a syntax graph and several connectivity matrices. The programmer may add new Backus–Naur form (BNF) productions to the graph. IMP72's syntax is extended by means of extended-BNF syntax statements included in a source code program. The mechanism is so powerful, that it allowed the implementation of the language by itself, i.e., by an IMP72 source file consisting entirely of syntax statements, which was input to a trivial compiler which was initially able to translate the simplest case of the syntax statement. There is also a simple form of the syntax statement which looks like a macro to the casual user. Basically, the syntax statement is an augmented BNF production with associated semantics added on the right: ::= syntax-part ::= semantic-part For example, to add the construct described by the following BNF: ::= INCREMENT with the semantics that INCREMENT V should translate to V ← V + 1 , the programmer would only need to insert the following IMP statement: ::= INCREMENT ::= "A←A+1" The semantic-part can also contain calls to semantic routines, as in the following syntax statement: ::= ABS ( ) ::= DEWOP(214B,AREG1(1,13),A) The semantic part of this statement consists of a call on the semantic routine DEWOP . The arguments are the octal constant 214B , the semantic routine call AREG1(1,13) , and A , which is the object on top of the stack at the moment this production is invoked. DEWOP is a semantic routine which respectively takes as its arguments a PDP-10 machine language opcode, a register object, and any other object, and produces an object whose value is the result of executing the designated machine instruction using as address field the object which is its last argument. In this example, the opcode 214B designates the Load Magnitude instruction, and thus the result of the above syntax statement will be to compile code to compute the absolute value of A . ==Folklore operating system== IMP was the language used on NSA's homegrown time-sharing operating system named Folklore. ==See also== Edinburgh IMP language (contrast) ==References== ==External links== PDP-10 IMP72 Reference Manual IMP72 Sources (dcus:[43,50306]*.*)

References

No reference rows published for this article.

Cite this article

MLA

"IMP (programming language)." encyclopegia.org, 2023, https://encyclopegia.org/wiki/imp-programming-language. Accessed 24 November 2026.

Chicago

"IMP (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/imp-programming-language.

APA

encyclopegia.org. (2023). IMP (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/imp-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Yūko Mizutani

enwiki · references available

Prabhat Ranjan Sarkar

enwiki · references available

Electrical breakdown

enwiki · references available

Society of Merchant Venturers

enwiki · references available

Karna

enwiki · references available

Chinese Canadian National Council

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1136170923 · 0.5 · snapshot enwiki-001136170923

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.