put anywhere in a grammar. Multiple doctest blocks can be included. To give them names, write %doctest <NAME>.
To get the expected output in a console, run .toggleviz to disable tree output:
In the doctest pane, clicking the debug icon will display a tree representation of the actual output (or outputs, if you debug an entire test case), and drop you into a lark> console:
.begin
, .end
for multiline%expect
?)Features:
.lark
files or autodetected (basically if they contain?start
)common
are supportedput anywhere in a grammar. Multiple doctest blocks can be included. To give them names, write
%doctest <NAME>
.To get the expected output in a console, run
.toggleviz
to disable tree output:In the doctest pane, clicking the debug icon will display a tree representation of the actual output (or outputs, if you debug an entire test case), and drop you into a lark> console: