|
|
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 Valeur, seg_048c6a
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Error, Liste_Valeurs, Nom_Variable,
Variable_Table, Dynamic_Value, Dictionnary;
package body Valeur is
procedure Parse_Parenthese_Fermante is
use Lexical_Analyzer;
begin
if (Lexical_Analyzer.Get_Token /= Right_Bracket) then
Error.Set_Type_Error (Error.Right_Bracket_Expected);
raise Error.Excep_Syntaxe_Error;
end if;
Lexical_Analyzer.Next;
end Parse_Parenthese_Fermante;
procedure Parse_Crochet_Fermant is
use Lexical_Analyzer;
begin
if (Lexical_Analyzer.Get_Token /= Right_Hook) then
Error.Set_Type_Error (Error.Right_Hook_Expected);
raise Error.Excep_Syntaxe_Error;
end if;
Lexical_Analyzer.Next;
end Parse_Crochet_Fermant;
procedure Parse_Ensemble is
use Lexical_Analyzer;
Dyn_Val : Dynamic_Value.Object;
begin
Dynamic_Value.Create (Dyn_Val);
while (Lexical_Analyzer.Get_Token =
Lexical_Analyzer.Complement_Or_Verbe) loop
if not (Dictionnary.Is_Complement
(Dynamic_Value.Get_Value (Dyn_Val))) then
Error.Set_Type_Error (Error.Complement_Expected);
raise Error.Excep_Syntaxe_Error;
end if;
Dynamic_Value.Append_To_Set (Dyn_Val, Lexical_Analyzer.Get_Value);
Lexical_Analyzer.Next;
end loop;
Variable_Table.Initialize_With (Dyn_Val);
end Parse_Ensemble;
procedure Parse is
use Lexical_Analyzer;
Dyn_Val : Dynamic_Value.Object;
begin
case (Lexical_Analyzer.Get_Token) is
when Left_Bracket =>
Lexical_Analyzer.Next;
Variable_Table.Go_In_Inherited;
Liste_Valeurs.Parse;
Parse_Parenthese_Fermante;
Variable_Table.Go_Out_Of_Inherited;
when String_Of_Characters =>
Dynamic_Value.Set_Value (Dyn_Val, Lexical_Analyzer.Get_Value);
Variable_Table.Initialize_With (Dyn_Val);
Lexical_Analyzer.Next;
when Integer_Number =>
Dynamic_Value.Set_Value
(Dyn_Val, Integer'Value (Lexical_Analyzer.Get_Value));
Variable_Table.Initialize_With (Dyn_Val);
Lexical_Analyzer.Next;
when Left_Hook =>
Lexical_Analyzer.Next;
Parse_Ensemble;
Parse_Crochet_Fermant;
when others =>
Error.Set_Type_Error (Error.Decl_Valeur_Expected);
raise Error.Excep_Syntaxe_Error;
end case;
end Parse;
function Is_First (Un_Token : Lexical_Analyzer.Tokens) return Boolean is
use Lexical_Analyzer;
begin
return ((Un_Token = Left_Bracket) or (Un_Token = Left_Hook) or
(Un_Token = String_Of_Characters) or
(Un_Token = Integer_Number));
end Is_First;
end Valeur;
nblk1=5
nid=0
hdr6=a
[0x00] rec0=21 rec1=00 rec2=01 rec3=020
[0x01] rec0=00 rec1=00 rec2=03 rec3=010
[0x02] rec0=1c rec1=00 rec2=05 rec3=02c
[0x03] rec0=1c rec1=00 rec2=04 rec3=004
[0x04] rec0=06 rec1=00 rec2=02 rec3=000
tail 0x2154624da865a8f012cbf 0x42a00088462060003