Fixed parser to add semicolons