Skip to main content

Module debug

Module debug 

Source
Expand description

Human-readable views of a syntax tree, for tests and debugging.

Functionsยง

sexp
Prints a tree as an s-expression: nodes as (KIND children...), tokens as their quoted text. For example {{ $x }} gives (ROOT (ECHO "{{" " $x " "}}")).
tree
Prints a tree one element per line, indented two spaces per level, with byte ranges. Tokens also show their quoted text: