Load file by Gist ID

Go!
×

Download your parser.

(The raw source code will appear in an untitled pop-up.)

×

Enter a GitHub personal access token:

To generate a GitHub personal access token, go here .

×
  1. Welcome to pegedit

    Please note that this site is an alpha-stage prototype under rapid development. It is likely to change often and, at times, some features may be broken or only partially implemented.

    Click next for an extremely brief tour.

    You can watch see this again at any time by clicking "Help" at the top of the screen.

  2. Make your parser...

    To start, you enter your PEG.js grammar here.

  3. Parse Something!

    The text that your PEG.js grammar will be parsing goes here.

  4. If you build it, they will come.

    Here's where you click to build your parser.

  5. 3 Ways to See the Results!

    Select one of the three tabs below to inspect your parser's results.

  6. Parser output

    This is where you can see the JSON representation of the parse tree produced by your PEG.

  7. What a pretty tree!

    Thanks to the library, d3.js, you don't need an imagination to visualize your parse tree!

  8. Console View

    This tab shows the results of traversing your parse tree...

    Essentially, it's what you'd see if your program ran in a console.

  9. Try a sample to start!

    Click here to pick one of the sample grammars.