1 /*
2 BattleOS : Engage battling programs.
3
4 Copyright (C) 1993 Erich P Gatejen ALL RIGHTS RESERVED
5
6
7 File : LABEL.H
8 Purpose : Header file for the BattleOS Assembler label handler class
9
10 !! Class Line provides all functions !!
11
12 */
13
14 /* Enumerate the possible returns from class members */
15 enum LabelResult { NOERROR = 0, BADLABELSET = 1, VALUEOUTOFRANGE = 2,
16 DUPLABEL = 3, LABELNOTFOUND = 4 };
17
18 /* Declare the Label type */
19 struct Label {
20 char Text[32];
21 int Value;
22
23 Label* Next;
24
25 };
26
27 /* Declare the Line class */
28 class LabelList {
29
30 // Label List pointers
31 Label* Head;
32 Label* Tail;
33
34 public:
35
36 LabelList(void); /* Constructor */
37 ~LabelList(); /* Destructor */
38
39 LabelResult AddLabel ( char** StringPointer, int Number );
40 LabelResult ExtractLabel( char** StringPointer, int& Value );
41
42 }; // end LabelList
43
|