|
|
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: 8192 (0x2000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Ajouter_Supprimer, seg_0476b6, seg_048c39, seg_048ca9, seg_048dda
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Lex;
with Traduction_Scenario;
package body Ajouter_Supprimer is
function Etat_Ou_Possession_Id return Boolean is
use Lex;
begin
case Lex.Next_Token is
when L_Possession =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
case Lex.Next_Token is
when L_Id | L_Objet =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
return True;
when others =>
return False;
end case;
when L_Etat =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
if Lex.Next_Token = L_Id then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
return True;
else
return False;
end if;
when others =>
return False;
end case;
end Etat_Ou_Possession_Id;
function Etat_Ou_Contenu_Id return Boolean is
use Lex;
Correct : Boolean;
begin
case Lex.Next_Token is
when L_Contenu =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Correct := True;
when L_Etat =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Correct := True;
when others =>
Correct := False;
end case;
if Correct then
if Lex.Next_Token = L_Id then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
else
Correct := False;
end if;
end if;
return Correct;
end Etat_Ou_Contenu_Id;
function Etat_Id return Boolean is
use Lex;
begin
if Lex.Get_Token = L_Etat then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
if Lex.Next_Token = L_Id then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => True);
Lex.Next;
return True;
end if;
end if;
return False;
end Etat_Id;
function Syntaxe_Ajouter_Supprimer return Boolean is
use Lex;
begin
case Lex.Next_Token is
when L_Possession =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
case Lex.Next_Token is
when L_Id =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
return True;
when others =>
return False;
end case;
when L_Contenu =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
case Lex.Next_Token is
when L_Id =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
return True;
when others =>
return False;
end case;
when others =>
if (Lex.Get_Token = L_Sens1 or Lex.Get_Token = L_Sens2) then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
end if;
return Etat_Id;
end case;
end Syntaxe_Ajouter_Supprimer;
procedure Parse (Ok : in out Boolean) is
use Lex;
begin
case Lex.Get_Token is
when L_Id =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Ok := Syntaxe_Ajouter_Supprimer;
when L_Personnage =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Ok := Etat_Ou_Possession_Id;
when L_Objet =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Ok := Etat_Ou_Contenu_Id;
when L_Joueur =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Ok := Etat_Ou_Possession_Id;
when L_Communication =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
if (Lex.Get_Token = L_Sens1 or Lex.Get_Token = L_Sens2) then
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
end if;
Ok := Etat_Id;
when L_Lieu =>
Traduction_Scenario.Add_Function_Parameter
(P => Lex.Get_Value, Is_Text => False);
Lex.Next;
Ok := Etat_Id;
when others =>
Ok := False;
end case;
end Parse;
end Ajouter_Supprimer;
nblk1=7
nid=0
hdr6=e
[0x00] rec0=1c rec1=00 rec2=01 rec3=064
[0x01] rec0=21 rec1=00 rec2=07 rec3=032
[0x02] rec0=22 rec1=00 rec2=06 rec3=030
[0x03] rec0=19 rec1=00 rec2=05 rec3=044
[0x04] rec0=20 rec1=00 rec2=03 rec3=030
[0x05] rec0=1d rec1=00 rec2=04 rec3=050
[0x06] rec0=12 rec1=00 rec2=02 rec3=000
tail 0x2174ae6408654487033e5 0x42a00088462060003