PEG demo 2009-12-14

This is a very simple demo that demonstrates the PEG parser generator API. We load a PEG from a file, construct a JavaScript parser from it, and use that parser to parse some input and display the resulting parse tree. You can edit the arithmetic expression below and see the different parse trees generated.

Though this demo doesn't show it, the parser generator also has Unicode support, including characters outside the BMP.