|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Valeur, seg_0467ad
└─⟦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; package body Valeur is 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; 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; 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; Dynamic_Value.Create (Dyn_Val); while (Lexical_Analyzer.Get_Token = Lexical_Analyzer.Complement_Or_Verbe) loop Dynamic_Value.Append_To_Set (Dyn_Val, Lexical_Analyzer.Get_Value); Lexical_Analyzer.Next; end loop; Variable_Table.Initialize_With (Dyn_Val); 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; when Identifier => Variable_Table.Initialize_With (Lexical_Analyzer.Get_Value); Lexical_Analyzer.Next; 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 = String_Of_Characters) or ((Un_Token = Integer_Number)))); end Is_First; --function eval ; --functin unparse; end Valeur;
nblk1=4 nid=4 hdr6=6 [0x00] rec0=1c rec1=00 rec2=01 rec3=036 [0x01] rec0=15 rec1=00 rec2=02 rec3=000 [0x02] rec0=1b rec1=00 rec2=03 rec3=000 [0x03] rec0=1f rec1=00 rec2=04 rec3=000 tail 0x21543381686515acae37e 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 03 56 00 34 20 20 20 20 20 20 20 20 20 20 ┆ V 4 ┆