* xmlAutomataCompile: * @am: an automata * * Compile the automata into a Reg Exp ready for being executed. * The automata should be free after this point. * * Returns the compiled regexp or NULL in case of error */
| 6284 | * Returns the compiled regexp or NULL in case of error |
| 6285 | */ |
| 6286 | xmlRegexpPtr |
| 6287 | xmlAutomataCompile(xmlAutomataPtr am) { |
| 6288 | xmlRegexpPtr ret; |
| 6289 | |
| 6290 | if ((am == NULL) || (am->error != 0)) return(NULL); |
| 6291 | xmlFAEliminateEpsilonTransitions(am); |
| 6292 | if (am->error != 0) |
| 6293 | return(NULL); |
| 6294 | /* xmlFAComputesDeterminism(am); */ |
| 6295 | ret = xmlRegEpxFromParse(am); |
| 6296 | |
| 6297 | return(ret); |
| 6298 | } |
| 6299 | |
| 6300 | /** |
| 6301 | * xmlAutomataIsDeterminist: |