Comparison of programming languages (syntax)

This article compares the syntax of many notable programming languages. == Expressions == Programming language expressions can be broadly classified into four syntax structures: prefix notation Lisp (* (+ 2 3) (expt 4 5)) infix notation Fortran (2 + 3) * (4 ** 5) suffix, postfix, or Reverse Polish notation Forth 2 3 + 4 5 ** * math-like notation TUTOR (2 + 3)(45) $$ note implicit multiply operator == Statement delimitation == A language that supports the statement construct typically has rules for one or more of the following aspects: Statement terminator – marks the end of a statement Statement separator – demarcates the boundary between two statements; not needed for the last statement Line continuation – escapes a newline to continue a statement on the next line Some languages define a special character as a terminator while some, called line-oriented, rely on the newline.

Source: Wikipedia — Comparison of programming languages (syntax) (CC BY-SA 4.0)

Comparison of programming languages (syntax)

This article compares the syntax of many notable programming languages. == Expressions == Programming language expressions can be broadly classified into four syntax structures: prefix notation Lisp (* (+ 2 3) (expt 4 5)) infix notation Fortran (2 + 3) * (4 ** 5) suffix, postfix, or Reverse Polish notation Forth 2 3 + 4 5 ** * math-like notation TUTOR (2 + 3)(45) $$ note implicit multiply operator == Statement delimitation == A language that supports the statement construct typically has rules for one or more of the following aspects: Statement terminator – marks the end of a statement Statement separator – demarcates the boundary between two statements; not needed for the last statement Line continuation – escapes a newline to continue a statement on the next line Some languages define a special character as a terminator while some, called line-oriented, rely on the newline.

Source: Wikipedia "Comparison of programming languages (syntax)" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy