10.07.2015 Views

Algol 68 - ACM Digital Library

Algol 68 - ACM Digital Library

Algol 68 - ACM Digital Library

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

130van Wijngaarden, et al.ALGOL <strong>68</strong> Revised Report 131d)e)f)mode L reel = c an actual-declarer specifying the mode 'L real' c ;mode char= c an actual-declarer specifying the mode 'character' c ;mode L compl = struct (L real re, im) ;g) mode L bits = struct ([1: L bits width ] bool L F); {See 10.2. l.j}[The field-selector is hidden from the user in order that he may notbreak open the structure; in particular, he may not subscript the field.}h) mode L bytes = struct ([ 1 : L bytes width ] char L ~ ; {See 10.2. l.m}i) mode string = flex [1 : O] char;10.2.3. Standard operators and functions10.2.3.0. Standard prioritiesa) prio minusab = 1, plusab = 1, timesab = 1, divab = 1, overab = 1,modab = 1, plusto = 1,-:== l, +:== l, x:== l, *:== l, /:==I, ÷:==1,%:==1, ÷x:== l,+,:==I, %x:== l, %,:== I, +=: =i,v =2, or=2,^=3, &=3, and=3,==4, oq=4, ~=4, /==4, ne=4,< =5, lt=5, ==5, ge=5, >=5, gt=5,-=6,+=6,x=7,,=7, /=7, +=7, %=7, over=7,+x = 7, ÷,= 7, %x = 7, %,= 7, mod = 7,= 7, elem = 7,I =8,**=8, ! =8, up=8, down=8, shl=8, shr=8,Iwb=8, upb=8, L =8, r =8,1 =9, +x=9, +.=9, i=9;10.2.3.1. Rows and associated operationsa) mode 9 rows = c an actual-declarer specifying a mode united from{2.1.3.6.a} a sufficient set of modes each of which begins with'row' c ;b) op ~ lwb, L # = (int n, rows a) int : c the lower bound in the n-th boundpair of the descriptor of the value of 'a', if that bound pairexists c ;c) op$upb, r #=(intn, rowsa)int: cthe upper bound in the n-thbound pair of the descriptor of the value of 'a', if that bound pairexists c ;d) op~lwb, L~=(rowsa)int: 1 L a;e) op~upb, r#=(rowsa)int: 1 r a;{The term "sufficient set", as used in a above and also in 10.3.2.2.b andd, implies that no intended particular-program should fail to be produced(nor any unintended particular-program be produced) by the syntax solelyon account of an insufficiency of modes in that set.}10.2.3.2. Operations on boolean operandsa) op ~ v, or~ = (bool a, b) bool : (a I true I b) ;b) opt^, &, and~=(boola, b)bool: (al bl false);c) opt-, ~, not#=(boola)bool: (al falsel true);d) op~=,eq#=(boola, b)bool: (ahb) v(-a^-b);e) op ~ ~, /=, ne ~ = (bool a, b) bool : - (a = b) ;f) op abs = (bool a) int : (a I 1 I O) ;10.2.3.3. Operations on integral operandsa) op ~

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!