Interactive ALGOL 68

Interactive ALGOL 68

The Interactive ALGOL 68 compiler for ALGOL 68 was made available by Peter Craven of Algol Applications from 1984.[1] Then in 1994 from OCCL (Oxford and Cambridge Compilers Ltd) until 2004.[2]

Contents

Platforms

Extensions to standard ALGOL 68

  1. Ability to include source code, and versions of source code.
  2. Nestable comments
  3. FORALL syntactic element for looping over arrays.
  4. ANYMODE a union of all MODEs known to the compiler, and hence dynamic typing.
  5. Enhanced coercions (casting) allowing stringer then "strong" coercions.
  6. Enstructuring automatically coerces a variable from type to struct(type)
  7. Conforming coerces UNION (THING, MOODS) to THING, but if that is not the current mood of the union, then a run-time error will be generated.
  8. Library interface to the native operating system and other libraries.
  9. The operator SIZE
  10. Pseudo-operators ANDTH and OREL, and ANF and ORF for Short-circuit evaluation of Boolean expressions.
  11. Arrays can be slices with stride to select a subset of elements.
  12. MOID is treated differently.

Example of code

MODULE vectors
BEGIN
    INT dim=3;
    MODE VECTOR = [dim]REAL;
    OP + = (VECTOR a, b) VECTOR: ( VECTOR out; FOR i FROM LWB a TO UPB a DO out:=a[i]+b[i] OD; out ),
       - = (VECTOR a, b) VECTOR: ( VECTOR out; FOR i FROM LWB a TO UPB a DO out:=a[i]-b[i] OD; out ),
       DOT = (VECTOR a, b) REAL: ( REAL out:=0; FOR i FROM LWB a TO UPB a DO out+:=a[i]*b[i] OD; out );
END
KEEP VECTOR, +, -, DOT

Restrictions to the language from the standard ALGOL 68

  1. Variable, Modes and Operators must be declared before use.
  2. Anonymous procedure may use rows-declarer as a parameter.
  3. No transient subnames of flexible arrays.
  4. No formatted Transput (or format-texts).
  5. Restricted use of straightening of multiple values during Transput.
  6. Limited use of BYTES, BITS and BOOL.
  7. restricted use of labels to follow EXIT statements.

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Stars and planetary systems in fiction — The planetary systems of stars other than the Sun and the Solar System are a staple element in much science fiction. Contents 1 Overview 1.1 The brightest stars …   Wikipedia

  • Michigan Terminal System — (MTS) The MTS welcome screen as seen through a 3270 terminal emulator. Company / developer University of Michigan and 7 other universities in the US, Canada, and the UK …   Wikipedia

  • computer — computerlike, adj. /keuhm pyooh teuhr/, n. 1. Also called processor. an electronic device designed to accept data, perform prescribed mathematical and logical operations at high speed, and display the results of these operations. Cf. analog… …   Universalium

  • List of programming languages by category — Programming language lists Alphabetical Categorical Chronological Generational This is a list of programming languages grouped by category. Some languages are listed in multiple categories. Contents …   Wikipedia

  • List of important publications in computer science — This is a list of important publications in computer science, organized by field. Some reasons why a particular publication might be regarded as important: Topic creator – A publication that created a new topic Breakthrough – A publication that… …   Wikipedia

  • computer programming language — Introduction       any of various languages for expressing a set of detailed instructions for a digital computer. Such instructions can be executed directly when they are in the computer manufacturer specific numerical form known as machine… …   Universalium

  • International Computers Limited — Former type Private Industry Computer hardware, Computer software Fate Acquired Successor Fujitsu Services Founded 1968 ( …   Wikipedia

  • Pascal (programming language) — Pascal Paradigm(s) imperative, structured Appeared in 1970 Designed by Niklaus Wirth Typing discipline static, strong, safe …   Wikipedia

  • ICL VME — This article is about the operating system. VME may also refer to the VMEbus computer bus. Virtual Machine Environment Company / developer International Computers Limited, Fujitsu Programmed in S3, C Initial release mid 1970s Supported… …   Wikipedia

  • Comparison of relational database management systems — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”