|
|
| OPERATORS
| Symbolic (also alphanumeric?) names,
grammatically: infix/prefix/postfix.
While all PLs include the standard arithmetic operators,
there is considerable variation in the inclusion of other symbols and symbol-sequences.
|
| |
| arithmetic
| relational
| other
| | Fortran
| +, -, *, /, **
| .eq., .ne., .lt., .le., .gt., .ge.
(operators or special form of identifiers?)
| .not., .and., .or., .eqv., .neqv.
| | C (1971/2/3)
| +, -, *, /, %
| ==, !=, <, <=, >, >=
|
~, !, ^, &, |
<<, >>, ++, --, &&, ||
=,
+=, -=, *=, /=,
~=, ^=, %=, &=, |=
<<=, >>=
| | Ada (1982/84/95)
| +, -, *, /, **
| =, /=, <, <=, >, >=
| &
|
|
|
|
|
denotable
| OPERATIONS
| | arithmeticrelationallogicbitupdate
| |
|
|
|
|
| LITERALS
|
BCPL was (one of) the first to enclose
character literals in single quotes
and string literals in double quotes.
Development within this tradition takes places only wrt. the escape sequences.
|
| character literals | string literals | escape sequences
(the escaping character itself, ", ', newline, tab, backspace, ...)
| BCPL (end of 1960s) [ref]
| 'c'
"string"
**, *", *', *N, *T, *B, ...
| C (1971/2/3)
| 'c'
"string"
\\, \", \', \n, \t, \b, ...,
\number (decimal, octal, hex)
| Smalltalk80 (1980) (and earlier versions?)
| $c
'string'
?
| Haskell
| 'c'
"string"
\\, \", \', \n, \t, \b, ...,
\number (decimal, octal, hex)
\^@, \^A, ... (control+X),
\NUL, ... \DEL (ASCII names)
| | | | | | | | | | | | |
|
|
|
|
|
|