|
|
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: 7168 (0x1c00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Personne, seg_048955
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Complements;
with Personnages;
with Syntax_Error;
with Lexical;
with Compiler_Token;
use Compiler_Token;
package body Personne is
procedure Parse is
Nom : Lexical.Our_String.Variable_String;
Commentaire : Lexical.Our_String.Variable_String;
begin
case Lexical.Get_Token is
when L_Personnage =>
Lexical.Next;
if Lexical.Get_Token = L_Id then
Nom := Lexical.Our_String.Value (Lexical.Get_Value);
Lexical.Next;
if Lexical.Get_Token = L_Est then
Lexical.Next;
if Lexical.Get_Token = L_Str then
Commentaire := Lexical.Our_String.Value
(Lexical.Get_Value);
if not Complements.Exists
(Lexical.Our_String.Image (Nom)) then
Complements.Create
(Lexical.Our_String.Image (Nom),
Complements.Personnage);
Personnages.Create
(Lexical.Our_String.Image (Nom));
Personnages.Set_Comment
(Lexical.Our_String.Image (Nom),
Lexical.Our_String.Image (Commentaire));
else
Syntax_Error.Semantique
("Le nom de ce Personnage est deja utilise");
end if;
Lexical.Next;
else
Syntax_Error.Syntaxique (R_Personne, "L_Str");
end if;
else
Syntax_Error.Syntaxique (R_Personne, "L_Est");
end if;
else
Syntax_Error.Syntaxique (R_Personne, "L_Id");
end if;
when L_Heros =>
Lexical.Next;
if Lexical.Get_Token = L_Id then
Nom := Lexical.Our_String.Value (Lexical.Get_Value);
Lexical.Next;
if Lexical.Get_Token = L_Est then
Lexical.Next;
if Lexical.Get_Token = L_Str then
Commentaire := Lexical.Our_String.Value
(Lexical.Get_Value);
if not Complements.Exists
(Lexical.Our_String.Image (Nom)) then
Complements.Create
(Lexical.Our_String.Image (Nom),
Complements.Personnage);
Personnages.Create
(Lexical.Our_String.Image (Nom));
Personnages.Set_Comment
(Lexical.Our_String.Image (Nom),
Lexical.Our_String.Image (Commentaire));
Personnages.Add_State
(Lexical.Our_String.Image (Nom), "heros");
else
Syntax_Error.Semantique
("Le nom de ce Heros est deja utilise");
end if;
Lexical.Next;
else
Syntax_Error.Syntaxique (R_Personne, "L_Str");
end if;
else
Syntax_Error.Syntaxique (R_Personne, "L_Est");
end if;
else
Syntax_Error.Syntaxique (R_Personne, "L_Id");
end if;
when others =>
Syntax_Error.Syntaxique (R_Personne, "L_Personnage ou L_Heros");
end case;
end Parse;
end Personne;
nblk1=6
nid=2
hdr6=a
[0x00] rec0=1d rec1=00 rec2=01 rec3=02e
[0x01] rec0=12 rec1=00 rec2=06 rec3=022
[0x02] rec0=16 rec1=00 rec2=04 rec3=04a
[0x03] rec0=14 rec1=00 rec2=03 rec3=034
[0x04] rec0=0b rec1=00 rec2=05 rec3=000
[0x05] rec0=08 rec1=00 rec2=05 rec3=001
tail 0x2174cce7c865a40a169a7 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 00 06 80 03 20 20 20 03 20 20 20 20 20 20 ┆ ┆