implement generateFailure and add some helper method
implement sequence and choice
add entry point of generated parser