PetitParser Examples
- JSON Parser
-
This interactive example compares the native JSON parser against the one
written with PetitParser.
- Lisp Interpreter
-
This interactive example contains a Lisp Interpreter. The code is reasonably
complete to run and evaluate complex programs.
- Math Evaluator
-
This interactive example parses and evaluates mathematical expressions.
- Prolog Interpreter
-
This interactive example contains a Prolog Interpreter. The code is reasonably
complete to run and evaluate basic programs.
- Smalltalk Parser
-
This interactive example contains the beginnings of a Smalltalk Interpreter.
Currently only the parsed AST is printed.
- URI Parser
-
This interactive example parses and decomposes URIs into their individual
components.