a naive regular expression implementation based-on finite automata using rust-lang