|
|
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: 6144 (0x1800)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Position, seg_04679c
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Complements;
with Items;
with Personnages;
with Syntax_Error;
with Lexical;
with Compiler_Token;
use Compiler_Token;
package body Position is
procedure Parse is
Nom : Lexical.Our_String.Variable_String;
La_Position : Lexical.Our_String.Variable_String;
begin
if Lexical.Get_Token = L_Position_De then
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_Id then
La_Position := Lexical.Our_String.Value
(Lexical.Get_Value);
if Complements.Exists
(Lexical.Our_String.Image (Nom)) then
case Complements.Kind_Of
(Lexical.Our_String.Image (Nom)) is
when Complements.Personnage =>
Personnages.Set_Position
(Lexical.Our_String.Image (Nom),
Lexical.Our_String.Image (La_Position));
when Complements.Item =>
Items.Set_Position
(Lexical.Our_String.Image (Nom),
Lexical.Our_String.Image (La_Position));
when Complements.No_One =>
Syntax_Error.Semantique
(Lexical.Our_String.Image (Nom) &
" n'est ni une personne, ni un objet");
when Complements.Way =>
Syntax_Error.Semantique
("Un acces ne peut pas avoir de position");
when Complements.Room =>
Syntax_Error.Semantique
("Une piece ne peut pas avoir de position");
end case;
else
Syntax_Error.Semantique
(Lexical.Our_String.Image (Nom) &
" n'existe pas");
end if;
Lexical.Next;
else
Syntax_Error.Syntaxique (R_Position, "L_Id");
end if;
else
Syntax_Error.Syntaxique (R_Position, "L_Est");
end if;
else
Syntax_Error.Syntaxique (R_Position, "L_Id");
end if;
else
Syntax_Error.Syntaxique (R_Position, "L_Position_De");
end if;
end Parse;
end Position;
nblk1=5
nid=3
hdr6=8
[0x00] rec0=1e rec1=00 rec2=01 rec3=03a
[0x01] rec0=0f rec1=00 rec2=02 rec3=02a
[0x02] rec0=18 rec1=00 rec2=04 rec3=006
[0x03] rec0=05 rec1=00 rec2=05 rec3=000
[0x04] rec0=08 rec1=00 rec2=02 rec3=000
tail 0x21749175a86515aacbb11 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 00 03 fc 80 35 20 20 20 20 20 20 20 20 20 20 ┆ 5 ┆