Comparison of Programming Languages (syntax) - Expressions

Expressions

Programming language expressions can be broadly classified in three classes:

prefix notation

  • Lisp (* (+ 2 3) (expt 4 5))

infix notation

  • Fortran (2 + 3) * (4 ** 5)
  • TUTOR (2 + 3)(45) $$ note implicit multiply operator

suffix, postfix, or Reverse Polish notation

  • Forth 2 3 + 4 5 ** *

Read more about this topic:  Comparison Of Programming Languages (syntax)

Famous quotes containing the word expressions:

    Our books are false by being fragmentary: their sentences are bon mots, and not parts of natural discourse; childish expressions of surprise or pleasure in nature; or, worse, owing a brief notoriety to their petulance, or aversion from the order of nature,—being some curiosity or oddity, designedly not in harmony with nature, and purposely framed to excite surprise, as jugglers do by concealing their means.
    Ralph Waldo Emerson (1803–1882)

    Those expressions are omitted which can not with propriety be read aloud in the family.
    Thomas Bowdler (1754–1825)

    Whatever offices of life are performed by women of culture and refinement are thenceforth elevated; they cease to be mere servile toils, and become expressions of the ideas of superior beings.
    Harriet Beecher Stowe (1811–1896)