|
|
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 Block, seg_0375dd
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Arguments;
with Block_Class;
with Statements;
with Tiny_Errors;
with Tiny_Trace;
with Tiny_Unparser;
package body Block is
type Node_Structure is
record
Line : Natural;
Stat : Statements.Node := Statements.Empty_Node;
end record;
procedure Parse (N : in out Node) is
begin
Tiny_Trace.Display ("parsing Block");
N := new Node_Structure;
N.Line := Tiny_Scanner.Get_Line_Number;
case Tiny_Scanner.Get_Token is
when Tiny_Scanner.L_Obra =>
Tiny_Scanner.Next_Token;
Arguments.Parse;
Statements.Parse (N.Stat);
case Tiny_Scanner.Get_Token is
when Tiny_Scanner.L_Cbra =>
Block_Class.Close;
Tiny_Scanner.Next_Token;
when others =>
raise Tiny_Errors.Expecting_Closing_Brace;
end case;
when others =>
raise Tiny_Errors.Expecting_Opening_Brace;
end case;
end Parse;
procedure Unparse (N : Node; Block_Obj : Object.Reference) is
begin
Tiny_Unparser.New_Right ("{ ");
Tiny_Unparser.New_Line;
Block_Class.Unparse (Block_Obj);
Statements.Unparse (N.Stat);
Tiny_Unparser.New_Left ("} ");
Tiny_Unparser.New_Line;
Tiny_Trace.Display ("fin unparse block");
end Unparse;
function Is_First (T : Tiny_Scanner.Token) return Boolean is
use Tiny_Scanner;
begin
return T = Tiny_Scanner.L_Obra;
end Is_First;
function Interpret (N : Node) return Object.Reference is
begin
Tiny_Errors.Save_Interpret_Line (N.Line);
return Statements.Interpret (N.Stat);
Tiny_Trace.Display ("fin interpretation Block");
end Interpret;
end Block;
nblk1=5
nid=3
hdr6=4
[0x00] rec0=20 rec1=00 rec2=01 rec3=084
[0x01] rec0=22 rec1=00 rec2=02 rec3=000
[0x02] rec0=02 rec1=00 rec2=03 rec3=000
[0x03] rec0=0a rec1=00 rec2=03 rec3=000
[0x04] rec0=80 rec1=00 rec2=00 rec3=100
tail 0x2152f97c884de4d844ce0 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 05 00 06 00 00 00 00 00 00 6e 64 20 42 6c 6f ┆ nd Blo┆
0x5: 0000 00 04 00 f6 00 45 20 20 20 20 20 20 20 20 20 20 ┆ E ┆
0x4: 0000 00 00 03 fc 80 1c 20 20 20 20 20 20 20 20 20 20 ┆ ┆