// See www.openfst.org for extensive documentation on this weighted // finite-state transducer library. #include #include #include namespace fst { namespace script { bool TopSort(MutableFstClass *fst) { TopSortArgs args(fst); Apply>("TopSort", fst->ArcType(), &args); return args.retval; } REGISTER_FST_OPERATION(TopSort, StdArc, TopSortArgs); REGISTER_FST_OPERATION(TopSort, LogArc, TopSortArgs); REGISTER_FST_OPERATION(TopSort, Log64Arc, TopSortArgs); } // namespace script } // namespace fst