-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsesUnit.pas
More file actions
31 lines (25 loc) · 855 Bytes
/
UsesUnit.pas
File metadata and controls
31 lines (25 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
unit UsesUnit;
interface
type
TConstructionType = (C_modul, C_other, c_if, c_switch, c_precycle, c_postcycle, c_operation, c_go);
pTRec = ^tRec;
TInternalConstr = array of pTRec;
tRec = record
fLevel: Integer;
fConstr: TConstructionType;
fAmount: Integer;
fInternal: TInternalConstr;
fGran: integer;
end;
tMetrixRec = record
fCond: integer;
fOper: integer;
fLevel: integer;
end;
const
COperationsUsed: array[0..6] of string = ('=', '+=', '-=', '*=', '/=', '++', '--');
CIDsOfOperations: array[0..6] of string = ('if', 'switch', 'for', 'while', 'do', 'break', 'continue'); //ñòðîêè, êîòîðûå ñîîòâåòâóþò TConstructionType;
MS_NO_TEXR_FILE: string = 'Ôàéë íå âûáðàí!';
CONDITION_CONSTR: set of TConstructionType = [c_if, c_switch, c_precycle, c_postcycle];
implementation
end.