Skip to content

Playground

The playground runs the released configuration and state parsers in your browser. Edit an example or paste your own text to see its highlights and concrete syntax tree update immediately.

Try the parser

Using tree-sitter-logrotate 0.2.0

Loading parser…

Source

Line 1, column 1

Syntax tree

0 nodes
Preparing the browser parser…

The source pane uses CodeMirror for editing, history, selection, bracket closing, line numbers, directive completion, and indentation through rotation, script, and common shell blocks. It uses the portable highlight query shipped with the selected parser. Shell commands inside script blocks use the shipped Bash injection and its highlight query. The syntax tree shows every named and anonymous node, its field name when one exists, and its source range. Parse recovery nodes and invalid state records are marked as issues.

The result describes syntax. Includes remain paths in the tree, script bodies remain text, and all parsing happens locally in the browser. The playground does not read files or run logrotate.