|
|
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: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Scenario, seg_0479a8
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Lex, Token_Pkg, Instructions_Locales, Text_Io,
Liste_Instructions, Error, Motor, Feuille;
use Token_Pkg;
package body Scenario is
------------------------------------------------------------------------
-- <UNIT> Scenario
------------------------------------------------------------------------
--
-- <DESCRIPTION> This package defines an operation for parsing the
-- grammatical expresssion : <scenario>
--
-- <AUTHOR> Barthe Raphael, Beck Didier, Kempe Laurent
-- <VERSION> 1.0
-- <DATE> 16-Jan-95
-- <MODIFY> 16-Jan-95
--
-- <PKG USED> LEX, Token_Pkg, Instructions_Locales, Instructions
-- Error
--
------------------------------------------------------------------------
procedure Parse (Success : in out Boolean) is
------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT> Parse
--
-- <DESCRIPTION> Try to parse <scenario> and return if it was a success
-- or not.
--
-- <EXCEPTIONS> Nothing
--
------------------------------------------------------------------------
Ok : Boolean := True;
begin
if Lex.Currenttoken_Is (T_Generales) then
Lex.Next;
Liste_Instructions.Parse (Motor.Liste_Globale, Ok);
Success := Success and Ok;
else
Success := False;
Error.Append;
end if;
Text_Io.Put_Line ("GLOBALES :");
Feuille.Image (Motor.Liste_Globale);
Text_Io.New_Line;
if Lex.Currenttoken_Is (T_Locales) then
Lex.Next;
Instructions_Locales.Parse (Motor.Liste_Locale, Ok);
Success := Success and Ok;
else
Success := False;
Error.Append;
end if;
Text_Io.Put_Line ("LOCALES :");
Feuille.Image (Motor.Liste_Locale);
Text_Io.New_Line;
if Lex.Currenttoken_Is (T_Pseudo_Generales) then
Lex.Next;
Liste_Instructions.Parse (Motor.Liste_Pseudo_Globale, Ok);
Success := Success and Ok;
if Lex.Currenttoken_Is (T_Eof) then
Success := True;
end if;
else
Success := False;
Error.Append;
end if;
Text_Io.Put_Line ("PSEUDO GLOBALES :");
Feuille.Image (Motor.Liste_Pseudo_Globale);
end Parse;
end Scenario;
nblk1=4
nid=2
hdr6=6
[0x00] rec0=1c rec1=00 rec2=01 rec3=038
[0x01] rec0=1f rec1=00 rec2=03 rec3=02a
[0x02] rec0=14 rec1=00 rec2=04 rec3=000
[0x03] rec0=12 rec1=00 rec2=02 rec3=000
tail 0x2174b313e865477ca6c64 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 02 18 80 32 20 20 69 66 20 4c 65 78 2e 43 ┆ 2 if Lex.C┆