bekroogle / pegedit

A browser-based tool for editing PEG.js grammars.
http://pegedit.cspotrun.org
MIT License
0 stars 1 forks source link

Use a callback for traversal #15

Open bekroogle opened 9 years ago

bekroogle commented 9 years ago

I had this thought a week ago, does it make sense?

To best accommodate multiple output formats and embrace decomposition, the traversal function needs to be removed from the grammar definition.

Right now, it's hard coded into the site's JavaScript. It should be replaced with a callback that the user can write in the page.