|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Lex, seg_044693
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Int_Lex, Text_Io, Bounded_String;
procedure Test_Lex is
Chaine : String (1 .. 80);
Size, Pos : Natural;
Result : Int_Lex.I_String;
Lex_Error, Continue : Boolean;
begin
Lex_Error := True;
while Lex_Error = True loop
Lex_Error := False;
Continue := True;
Pos := 1;
Text_Io.Put ("> ");
Text_Io.Get_Line (Chaine, Size);
while Continue loop
Int_Lex.Get (Chaine, Size, Pos, Result);
if Bounded_String.Image (Result) = "Lex Error" then
Lex_Error := True;
Continue := False;
Text_Io.Put_Line ("Il y a une mot que je ne comprend pas !");
else
if not (Int_Lex.Give_Up (Result)) then
Text_Io.Put_Line (Bounded_String.Image (Result));
end if;
if Pos >= Size then
Continue := False;
Lex_Error := True;
end if;
end if;
end loop;
end loop;
end Test_Lex;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=23 rec1=00 rec2=01 rec3=02c
[0x01] rec0=08 rec1=00 rec2=02 rec3=001
tail 0x215403aa8863e7a4798a2 0x42a00088462060003