2023-04-05

(sph lang parser outline)

parse a markup structure where headings are prefixed by one or multiple characters for nested sections.

part of sph-lib

library description

for example markdown and org-mode

module name

(sph lang parser outline)

exported bindings

procedure: primitive-read-outline port parse-heading ->
port procedure:{string:line -> (integer:nesting-depth/false string:heading/false)} -> list
procedure: read-outline port parse-heading ->
port char/procedure:{string:line -> (integer:nesting-depth/false string:heading/false)} -> list
for parsing structured text where repetitions of a character at the beginning of a line designate
the section nesting depth of following lines that are not of equal or lower nesting depth
variable: sph-lang-parser-outline-description