Rewrite the JavaScript PEG parser from scratch.