An enantiomer, diastereoisomer or tautomer of a compound, represented by formula (I): wherein either A or B is nitrogen and the other B or A is C, and the radicals R<1>, R<2>, R<3>, R<4>, R<5>, R<6>, R<7>, R<8>, R<9>, and R<10> are as defined herein, or a salt or ester thereof as viral polymerase inhibitors. The compound is used as an inhibitor of RNA dependent RNA polymerases, particularly those viral polymerases within the Flaviviridae family, more particularly to HCV polymerase.