Line 65... |
Line 65... |
indent--;
|
indent--;
|
EmitIndent(out);
|
EmitIndent(out);
|
fprintf(out, "} %d %s\n", indent, node_type);
|
fprintf(out, "} %d %s\n", indent, node_type);
|
}
|
}
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
void StatementList ::Emit(FILE * out) { EmitList(out); }
|
template<> void StatementList ::Emit(FILE * out) { EmitList(out); }
|
void DeclarationList ::Emit(FILE * out) { EmitList(out); }
|
template<> void DeclarationList ::Emit(FILE * out) { EmitList(out); }
|
void InitializerList ::Emit(FILE * out) { EmitList(out); }
|
template<> void InitializerList ::Emit(FILE * out) { EmitList(out); }
|
void ParameterDeclarationList::Emit(FILE * out) { EmitList(out); }
|
template<> void ParameterDeclarationList::Emit(FILE * out) { EmitList(out); }
|
void IdentifierList ::Emit(FILE * out) { EmitList(out); }
|
template<> void IdentifierList ::Emit(FILE * out) { EmitList(out); }
|
void StructDeclaratorList ::Emit(FILE * out) { assert(0); }
|
template<> void StructDeclaratorList ::Emit(FILE * out) { assert(0); }
|
void StructDeclarationList ::Emit(FILE * out) { assert(0); }
|
template<> void StructDeclarationList ::Emit(FILE * out) { assert(0); }
|
void InitDeclaratorList ::Emit(FILE * out) { EmitList(out); }
|
template<> void InitDeclaratorList ::Emit(FILE * out) { EmitList(out); }
|
void TypeSpecifierList ::Emit(FILE * out) { EmitList(out); }
|
template<> void TypeSpecifierList ::Emit(FILE * out) { EmitList(out); }
|
void Declarator ::Emit(FILE * out) { EmitList(out); }
|
template<> void Declarator ::Emit(FILE * out) { EmitList(out); }
|
void Pointer ::Emit(FILE * out) { EmitList(out); }
|
template<> void Pointer ::Emit(FILE * out) { EmitList(out); }
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
void StructDeclarator::Emit(FILE * out)
|
void StructDeclarator::Emit(FILE * out)
|
{
|
{
|
assert(declarator);
|
assert(declarator);
|
EmitStart(out);
|
EmitStart(out);
|
Line 113... |
Line 113... |
}
|
}
|
|
|
return tspec->GetSize(declarator);
|
return tspec->GetSize(declarator);
|
}
|
}
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
|
template<>
|
void EnumeratorList::Emit(FILE * out)
|
void EnumeratorList::Emit(FILE * out)
|
{
|
{
|
Enumerator::current = 0;
|
Enumerator::current = 0;
|
|
|
for (EnumeratorList * el = this; el; el = el->tail)
|
for (EnumeratorList * el = this; el; el = el->tail)
|