2017-10-21 23:40:19 +00:00
|
|
|
{$optimize 7}
|
|
|
|
{---------------------------------------------------------------}
|
|
|
|
{ }
|
|
|
|
{ Table }
|
|
|
|
{ }
|
|
|
|
{ Initialized arrays and records. }
|
|
|
|
{ }
|
|
|
|
{---------------------------------------------------------------}
|
|
|
|
|
|
|
|
unit Table;
|
|
|
|
|
|
|
|
{$LibPrefix '0/obj/'}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses CCommon;
|
|
|
|
|
|
|
|
var
|
|
|
|
{from scanner.pas}
|
|
|
|
{----------------}
|
|
|
|
charKinds: array[minChar..maxChar] of charEnum; {character kinds}
|
|
|
|
charSym: array[minChar..maxChar] of tokenEnum; {symbols for single char symbols}
|
2020-01-04 04:47:53 +00:00
|
|
|
reservedWords: array[_Alignassy..whilesy] of string[14]; {reserved word strings}
|
|
|
|
wordHash: array[0..25] of tokenEnum; {for hashing reserved words}
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
{from ASM.PAS}
|
|
|
|
{------------}
|
|
|
|
{names of the opcodes}
|
|
|
|
names: array[opcode] of packed array[1..3] of char;
|
|
|
|
|
|
|
|
{binary values for the opcodes}
|
|
|
|
iOpcodes: array[o_clc..o_xce] of byte;
|
|
|
|
rOpcodes: array[o_bcc..o_bvs] of byte;
|
|
|
|
nOpcodes: array[o_adc..o_tsb,operands] of byte;
|
|
|
|
|
|
|
|
{from EXPRESSION.PAS}
|
|
|
|
{-------------------}
|
2020-01-29 23:09:52 +00:00
|
|
|
icp: array[tokenEnum] of byte; {in-coming priorities}
|
2017-10-21 23:40:19 +00:00
|
|
|
isp: array[tokenEnum] of byte; {in-stack priorities}
|
|
|
|
|
2020-01-20 04:00:05 +00:00
|
|
|
{from Charset.pas}
|
|
|
|
{----------------}
|
|
|
|
macRomanToUCS: array[$80..$FF] of integer; {mapping from MacRoman charset to UCS}
|
2017-10-21 23:40:19 +00:00
|
|
|
implementation
|
|
|
|
|
|
|
|
end.
|