• Aucun résultat trouvé

.. literals .. literals

N/A
N/A
Protected

Academic year: 2022

Partager ".. literals .. literals"

Copied!
1
0
0

Texte intégral

(1)

DILitDefs.mesa

file DILitDefs.Mesa last modified by

2-Sep-78 15:32:14

Sandman, November 2, 1977 8:44 AM Barbara, June 21, 1978 1:05 PM DIRECTORY

AltoDefs: FROM "altodefs" USING [PageSize].

StringDefs: FROM "stringdefs" USING [SubString, SubStringDescriptor];

DILitDefs: DEFINITIONS·

BEGIN

LitTablnit, LitTabErase: PROCEDURE;

-- numeric literals

LTRecord: PRIVATE TYPE· RECORD [ free: BOOLEAN,

link: LTIndex,

datum: SELECT kind:

*

FROM

short =) [value: WORD, unused: UNSPECIFIED].

long =) [value: LONG INTEGER], ENDCASE];

--size of debugger's literal table is currently 1 page Half Page: CARDINAL· AltoDefs.PageSize/2;

LTRecordSize: CARDINAL· 3;

MaxLiterals: CARDINAL

=

HalfPage/LTRecordSize;

LTIndex: TYPE

=

CARDINAL [O .. MaxLiterals);

LTNull: PRIVATE LTlndex

=

FIRST[LTlndex];

FindLiteral: PROCEDURE [WORD] RETURNS [LTIndex];

LiteralValue: PROCEDURE [LTIndex] RETURNS [WORD];

FindLongLiteral: PROCEDURE [LONG INTEGER] RETURNS [LTIndex);

LongLiteralValue: PROCEDURE [lTlndex] RETURNS [LONG INTEGER];

TooManyLiterals: ERROR;

-- string literals

STRecord: PRIVATE TYPE a RECORD [ free: BOOLEAN,

link: STIndex,

string: StringDefs.SubStringDescriptor];

-- the actual string text follows here STRecordSize: CARDINAL· 5;

MaxStringLiterals: CARDINAL· HalfPage/STRecordSize;

STIndex: TYPE = CARDINAL [O .. MaxStringLiterals);

STNull: PRIVATE STlndex = FIRST[STlndex);

FindStringLiteral: PROCEDURE [StringDefs.SubString] RETURNS [STIndex];

StringLiteralValue: PROCEDURE [STIndex] RETURNS [StringDefs.SubString];

TooManyStringLiterals: ERROR;

END.

Page 1

Références

Documents relatifs

Draw the arrows again, but this time the tail of the second arrow should be at the head of the first arrow. Then draw the arrow whose tail is the tail of the first arrow and whose

The unit-specific datatype approach is also simple and clear, and it correctly associates unit information with values rather than properties so that units are

[r]

LoadNew: PROCEDURE [file: STRING] RETURNS [Globa1FrameHand1e];. LongREAD: PROCEDURE [a: LONG POINfER] RETURNS

-- routines for converting between strings and numbers StringToDecimal: PROCEDURE [STRING] RETURNS [INTEGER]:. StringToOctal: PROCEDURE [STRING] RETURNS

Graph embedding models produce embedding vectors for en- tities and relations in Knowledge Graphs, often without taking literal properties into account.. We show an initial idea

Indeed, it makes no difference whether these tests are run on the deskolemized or partially skolemized clause: by definition of unique- ness, we know that the literals in u cannot

[r]