Implemented a pegjs parser