Advanced Examples

LALR’s contextual lexer

LALR’s contextual lexer

Templates

Templates

Earley’s dynamic lexer

Earley’s dynamic lexer

Error handling using an interactive parser

Error handling using an interactive parser

Reconstruct a JSON

Reconstruct a JSON

Custom lexer

Custom lexer

Transform a Forest

Transform a Forest

Simple JSON Parser

Simple JSON Parser

Custom SPPF Prioritizer

Custom SPPF Prioritizer

Python 3 to Python 2 converter (tree templates)

Python 3 to Python 2 converter (tree templates)

Grammar-complete Python Parser

Grammar-complete Python Parser

Creating an AST from the parse tree

Creating an AST from the parse tree

Example-Driven Error Reporting

Example-Driven Error Reporting

Example-Driven Error Reporting

Example-Driven Error Reporting

Reconstruct Python

Reconstruct Python

Using lexer dynamic_complete

Using lexer dynamic_complete

Syntax Highlighting

Syntax Highlighting