|
|
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 Token_Pkg, seg_04980f
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
package body Token_Pkg is
------------------------------------------------------------------------
-- <UNIT> Token_Pkg
------------------------------------------------------------------------
--
-- <DESCRIPTION> This package defines types and operations for working
-- with tokens.
--
-- <AUTHOR> Barthe Raphael, Beck Didier, Kempe Laurent
-- <VERSION> 1.0
-- <DATE> 05-Jan-95
-- <MODIFY> 12-Jan-95
--
-- <PKG USED>
------------------------------------------------------------------------
type Keywords is (Vrai, Faux, Peut, Etre, Constitue, De, Dans,
La, Piece, Ou, Et, Non, Si, Alors, Fin_Si,
Vaut, Dire, Jeu_Termine, Fin, Directions,
Pieces, Objets, Liens, Pnjs, Hero, Actions,
Scenario, Clauses_Presentation, Clauses_Generales,
Clauses_Locales, Clauses_Pseudo_Generales,
Piece_Courante, Objet, Pnj, Direction);
function Iskeyword (Word : in String) return Boolean is
--------------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT> IsKeyWord
--
-- <DESCRIPTION> check if the string in input is a keyword of the langage.
--
-- <EXCEPTIONS> Nothing
--
--------------------------------------------------------------------------------
K : Keywords;
begin
K := Keywords'Value (Word);
return True;
exception
when Constraint_Error =>
return False;
end Iskeyword;
function To_Token (Word : in String) return Token is
--------------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT> To_Token
--
-- <DESCRIPTION> convert a string to a token.
--
-- <EXCEPTIONS> Nothing
--
--------------------------------------------------------------------------------
begin
return (Token'Val (Keywords'Pos (Keywords'Value (Word))));
end To_Token;
end Token_Pkg;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=19 rec1=00 rec2=01 rec3=022
[0x01] rec0=02 rec1=00 rec2=04 rec3=022
[0x02] rec0=1e rec1=00 rec2=02 rec3=084
[0x03] rec0=05 rec1=00 rec2=03 rec3=000
tail 0x21546e53c865e6986a4ee 0x42a00088462060003