Jison is a parser generator written in JavaScript. This page uses Jison to display an interactive parsing table based on the grammar and parsing algorithm chosen, which can be very helpful for debugging.

Special thanks to Dr. Ligatti for suggesting and giving feedback on the initial interface.

Input

Input a BNF grammar as you would with Bison.

Load an example:

Parser type: * WARNING: LR(1) may take considerable time to execute for large/ambigous grammars.

Output



    

Process your grammar to see the result here.

Parse a program

Grammars with lexing information allow for parsing. Use the form below to parse a program using your grammar:


Result

Fork me on GitHub