Replace pegjs grammar/parser with an own parser