Interactive PetitParser Examples

BibTeX Browser & Search
Downloads and parses real-world BibTeX databases directly in your browser with filtering, full-text search, and citation export.
Dart Grammar Visualizer
Parses Dart source code into typed ASTs, highlighting language features and measuring parsing performance.
JSON Parser
Compares the native JSON parser against the one written with PetitParser.
Lisp Interpreter
A reasonably complete interpreter that is able to parse and evaluate complex programs.
Math Evaluator
Parses and evaluates mathematical expressions.
Math Plotter
Parses and plots mathematical expressions.
Pascal Grammar Visualizer
Parses Pascal source code into typed ASTs, highlighting language features and measuring parsing performance.
Prolog Interpreter
A reasonably complete interpreter that is able to parse and evaluate basic logic programs.
Regular Expression Playground
Parses regular expressions, compiles them to Non-deterministic Finite Automata (NFA), and matches them against input text with interactive visualization.
Smalltalk Parser
Contains the beginnings of a Smalltalk Interpreter. Currently only the parsed AST is printed.
Tabular Text Parser
Parseres comma-separated or tab-separated tabular textual data.
URI Parser
Parses and decomposes URIs into their individual components.
XML Parser
Parses XML files to events, creates and pretty-prints a DOM tree, and evaluates XPath expressions.