home *** CD-ROM | disk | FTP | other *** search
- program text;
- uses Crt, Dos;
-
- type Tar = array[0..9,0..9] of Integer;
-
- TR = record
- a:Byte;
- b:Integer;
- c:record
- d:Boolean;
- end;
- case Integer of
- 1:(o:Byte; p:Integer);
- 2:(case Byte of
- 1: (r :Integer);
- 2: (s, t :Byte))
- end;
-
- Tobj = object
- end;
-
- To2 = object(Tobj)
- private
- a:integer;
- public
- function geta:Integer;
- end;
-
- var
- a,b,c,d,e,f :integer;
- i,j :Byte;
- v :Tar;
- s :String;
- const cx :Tar = ( {adasdfsdfasdfasdf}
- (0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (1, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (2, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (3, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (4, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (5, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (6, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (7, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (8, 0, 0, 0, 0, 0, 0, 0, 0, 0),
- (9, 0, 0, 0, 0, 0, 0, 0, 0, 0));
-
- c1 = 10;
- c2 = 20;
- c3 = 30;
-
- d1 = 10;
- d2 = 20;
- d3 = 30;
-
- label lab;
-
- procedure xxx;
- procedure Nested;
- var a:byte;
- begin
- Writeln;
- end;
- begin
- asm
- mov ax,bx;
- mov dx, cx;
- end;
- d:=e;
- f:=1;
- end;
-
- function To2.geta:Integer;
- begin
- geta:=a;
- end;
-
-
-
- begin
- a:=b;
- if (a>b) or (cx[a+b,f]=d*e) then {comment1}
- begin
- for i:=1 to {comment2} 10 do
- for j:=1 to i do
- begin {comment3}
- lab: a:=b;
- c:=d;
- end;
- a:= b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b + b;
- s:='This is just a test string; This is just a test string; aaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbb cccccccccccc ddddddddddd This is just a test string;';
- if a = b then Write('xxx');
- end
- else
- begin
- Writeln;
- {} Writeln;
- end;
- (* if c<>d then c:=d
- else if e=f then while e>0 do Dec(e);*)
- if c<>d then c:=d
- else if e=f then while e>0 do Dec(e);
-
- case e of
- 1,2,3,4,5: begin
- a:=1;
- b:=2;
- end;
- 6,7 :c:=1;
- 8: if b=2 then a:=2;
- else f:=2;
- end;
- end.