|
|
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_0427e1
└─⟦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, Mais, Peut, Etre, Constitue, De, Le, Dans,
La, Piece, Est, Ou, Et, Non, Si, Alors, Fin_Si, Vaut,
Dire, Jeu_Termine, Fin, Directions, Pieces, Objets,
Liens, Pnjs, Hero, Actions, Scenario, Clauses_Generales,
Clauses_Locales, Clauses_Pseudo_Generales,
Piece_Courante, Objet, Pnj, Direction, Lien);
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=4
hdr6=6
[0x00] rec0=18 rec1=00 rec2=01 rec3=060
[0x01] rec0=20 rec1=00 rec2=02 rec3=032
[0x02] rec0=05 rec1=00 rec2=03 rec3=000
[0x03] rec0=04 rec1=00 rec2=03 rec3=000
tail 0x2153dbe64862f7397dac2 0x42a00088462060003
Free Block Chain:
0x4: 0000 00 00 00 3a 80 15 6e 6a 2c 20 44 69 72 65 63 74 ┆ : nj, Direct┆