User talk:Mbishop: Difference between revisions

m
 
(4 intermediate revisions by 2 users not shown)
Line 12:
 
Actually it isn't to bad. There are several types of identifiers.
* BOLD - BEGIN/EXIT/END, IF/THEN/ELSE/FI, CASE/IN/OUT/ESAC, FOR/FROM/BY/TO/WHILE/DO/OD, MODEs and OPerators. Normally <b>bolded</b>.
* OPerators - can be special characters, see below.
* names - alphanumeric starting with alphabetic, spaces in the middle are ignored. Normally <i>italiced</i>.
Line 38:
You will have fun with these:
 
The &or;, &and;, &not;, &ne;, &le;, &ge;, &times;, &divide;, ⌷, &uarr;, &darr;, ⌊, ⌈ and &perp; characters can be found on the [[:wikipediawp:IBM 2741]] keyboard with the [[:wikipediawp:APL programming language#APL symbols and keyboard layout|APL]] "golf-ball" print head inserted, these became available in the mid 1960s while ALGOL 68 was being drafted. {c.f. IBM code pages [http://www.tachyonsoft.com/cp00293.htm 293], [http://www.tachyonsoft.com/cp00907.htm 907] & [http://www.tachyonsoft.com/cp00910.htm 910]}
 
Notes:
* Unicode character "DECIMAL EXPONENT SYMBOL 23e8" is also permitted. eg In Algol "1 million" can be 1 000 000 or 1e6 or even 1⏨6.
* binary/nibble/octal/hexidecimal literals are of the form 2r012r1001, 4r012301234r32100123, 8r012345678r12345670, 16r0123456789abcdef16r123456789abcdef0 respectively.
 
====BOLD symbols and reserved words as typically printed====
Line 57:
'''of''', '''at''' "@", '''is''' ":=:", '''isnt''' ":&ne;:",
Builtin "constants"†:
'''true''', '''false''', '''empty''', '''nil''' "&deg;", '''skip''' "~" (also "?"),
Comments and Pragmats†:
'''co''' "&cent;", '''comment''' "&cent;", '''pr''', '''pragmat''',