|
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: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Affect, seg_037ae3
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Lex, Error, Debug, Symbol; with Expression; package body Affect is procedure Parse (N : in out Binary_Tree.Node; Success : in out Boolean) is N1 : Binary_Tree.Node; Ok : Boolean := True; begin Success := True; if Lex.Current_Token_Is (Lex.Identifier) then N1 := new Binary_Tree.Node_Structure; N1.The_Type := Binary_Tree.Affect_Type; N1.S := new String'(Lex.Image); Debug.Put (500); Lex.Next; if Lex.Current_Token_Is (Lex.Let) then Debug.Put (501); Lex.Next; Expression.Parse (N1.Right_Son, Ok); Success := Ok and Success; else Error.Append (8); Success := False; end if; N := N1; else Error.Append (9); Success := False; end if; end Parse; procedure Generate (N : Binary_Tree.Node) is Value : Natural; The_Type : Symbol.Symbol_Type; Ok : Boolean := True; begin Symbol.Get_Variable (N.S.all, The_Type, Value, Ok); if Ok then Expression.Generate (N.Right_Son, Value); Symbol.Set_Var_Value (N.S.all, Value); else Symbol.Add_Variable (Variable_Name => N.S.all, The_Value => Value); end if; end Generate; end Affect;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=22 rec1=00 rec2=01 rec3=00e [0x01] rec0=10 rec1=00 rec2=02 rec3=001 tail 0x21735457284e566ad5a80 0x42a00088462060003