Bug fixed

If last state in charts is not $->S @
the program will return false even if there has successful parse.
Bug fixed by xxk