4 public class ASTSpecifier : ASTNode
12 //OldList * templateArgs;
19 OldList * definitions;
22 ExtDecl extDeclStruct;
24 Expression expression;
26 TemplateParameter templateParameter;
31 public class SpecsList : ASTList<ASTSpecifier>
40 SpecsList specs = null;
45 if(nextToken.type.isSpecifier)
48 if(!specs) specs = { };
49 specs.Add(SpecBase { specifier = token.type });
50 if(!token.type.isQualifier)
53 else if(nextToken.type == IDENTIFIER)
56 if(isType || !gotSpec)
59 if(!specs) specs = { };
60 specs.Add(SpecName { name = CopyString(token.text) });
73 public class SpecBase : ASTSpecifier
83 public class SpecName : ASTSpecifier
94 public class Attribute : struct
103 public class Attrib : struct
111 public class ExtDecl : struct
125 public class Enumerator : struct
128 Enumerator prev, next;