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:

    Its idea of “production value” is spending a million dollars dressing up a story that any good writer would throw away. Its vision of the rewarding movie is a vehicle for some glamour-puss with two expressions and eighteen changes of costume, or for some male idol of the muddled millions with a permanent hangover, six worn-out acting tricks, the build of a lifeguard, and the mentality of a chicken-strangler.
    Raymond Chandler (1888–1959)

    Each child has his own individual expressions to offer to the world. That expression can take many forms, from artistic interests, a way of thinking, athletic activities, a particular style of dressing, musical talents, different hobbies, etc. Our job is to join our children in discovering who they are.
    Stephanie Martson (20th century)

    The expressions of the poet cannot be analyzed; his sentence is one word, whose syllables are words. There are indeed no words quite worthy to be set to his music. But what matter if we do not hear the words always, if we hear the music?
    Henry David Thoreau (1817–1862)