From c89ae2a6f05cab798f7504e8b3a4c1abf88797e9 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Mon, 25 Feb 2013 21:10:33 -0500 Subject: removed tokenInstanceList from Namespace, not needed --- colm/parsetree.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'colm/parsetree.h') diff --git a/colm/parsetree.h b/colm/parsetree.h index 01b8552f..4f4a81fd 100644 --- a/colm/parsetree.h +++ b/colm/parsetree.h @@ -175,7 +175,6 @@ struct TokenDefListReg; struct TokenDefListNs; struct TokenInstance; struct TokenInstanceListReg; -struct TokenInstanceListNs; struct Range; struct LangEl; @@ -437,20 +436,14 @@ struct TokenDef bool isZero; }; -struct TokenInstancePtr1 -{ - TokenInstance *prev, *next; -}; - -struct TokenInstancePtr2 +struct TokenInstancePtr { TokenInstance *prev, *next; }; struct TokenInstance : - public TokenInstancePtr1, - public TokenInstancePtr2 + public TokenInstancePtr { TokenInstance() : @@ -550,8 +543,7 @@ struct NtDef struct NtDefList : DList {}; /* Declare a new type so that ptreetypes.h need not include dlist.h. */ -struct TokenInstanceListReg : DListMel {}; -struct TokenInstanceListNs : DListMel {}; +struct TokenInstanceListReg : DListMel {}; /* Declare a new type so that ptreetypes.h need not include dlist.h. */ struct TokenDefListReg : DListMel {}; @@ -801,7 +793,6 @@ struct Namespace LiteralDict literalDict; /* List of tokens defs in the namespace. */ - TokenInstanceListNs tokenInstanceList; TokenDefListNs tokenDefList; /* List of nonterminal defs in the namespace. */ -- cgit v1.2.1