Use Trifecta's endBy combinator
Fix early termination of REPL