a java code to convert regular expression to nfa