/* */
/* */
/* */
-/* (C) 2000-2008, Ullrich von Bassewitz */
+/* (C) 2000-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/*****************************************************************************/
/* Data */
/*****************************************************************************/
-
+
/* Struct holding a token */
typedef struct TokNode TokNode;
struct TokNode {
TokNode* Next; /* For single linked list */
- Token Tok; /* Token value */
- int WS; /* Whitespace before token? */
- long IVal; /* Integer token attribute */
- StrBuf SVal; /* String attribute, dyn. allocated */
+ Token T; /* Token value */
};
/* Struct holding a token list */
TokNode* NewTokNode (void);
/* Create and return a token node with the current token value */
-void FreeTokNode (TokNode* T);
+void FreeTokNode (TokNode* N);
/* Free the given token node */
-void TokSet (TokNode* T);
+void TokSet (TokNode* N);
/* Set the scanner token from the given token node */
-enum TC TokCmp (const TokNode* T);
+enum TC TokCmp (const TokNode* N);
/* Compare the token given as parameter against the current token */
void InitTokList (TokList* T);
void FreeTokList (TokList* T);
/* Delete the token list including all token nodes */
-Token GetTokListTerm (Token Term);
+token_t GetTokListTerm (token_t Term);
/* Determine if the following token list is enclosed in curly braces. This is
* the case if the next token is the opening brace. If so, skip it and return
* a closing brace, otherwise return Term.