throw new OperatorException("Esperaba comparador");
}
void COLOR () {
if (esNegro()) {
Match(new VT("TK_NEGRO"));
return;
}
if (esVerde()) {
Match(new VT("TK_VERDE"));
return;
}
if (esNaranja()) {
Match(new VT("TK_NARANJA"));
return;
}
if (esRosa()) {
Match(new VT("TK_ROSA"));
return;
}
if (esRojo()) {
Match(new VT("TK_ROJO"));
return;
}
if (esBlanco()) {
Match(new VT("TK_BLANCO"));
return;
}
if (esAmarillo()) {
Match(new VT("TK_AMARILLO"));
return;
}
if (esMagenta()) {
Match(new VT("TK_MAGENTA"));
return;
}
throw new ColorException("Esperaba color");
}