composeComp method
Implementation
void composeComp(StringBuffer buffer, Component comp) {
if (comp is Factor) {
composeFactor(buffer, comp);
} else if (comp is Symbol) {
composeSymbol(buffer, comp);
} else if (comp is Term) {
buffer.write('(');
composeTerm(buffer, comp);
buffer.write(')');
} else {
buffer.write('?');
}
}