sophiajt / new-nu-parser

23 stars 10 forks source link

Start toolkit.nu; Add span highlighting tool #13

Closed kubouch closed 10 months ago

kubouch commented 10 months ago

This starts toolkit.nu to collect helpful utilities.

The first utility I made is the span command which highlights the input string. For example,

> open tests/if_.nu | span 16 24

will highlight and underline the $x < 100 part.

The span command is helpful for debugging if you want to check the spans printed by running the parser.