2017-08-27

(sph lang parser outline)

parser for unindented "outlines" like emacs outline-mode or org-mode or wiki syntaxes like dokuwiki

import name

(sph lang parser outline)

exports

primitive-read-outline

procedure

signature

port parse-heading ->

port procedure:{string:line -> (integer:nesting-depth/false string:heading/false)} -> list

read-outline

procedure

signature

port parse-heading ->

port char/procedure:{string:line -> (integer:nesting-depth/false string:heading/false)} -> list

description

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

sph-lang-parser-outline-description

variable

tags: programming guile documentation library scheme sph-lib sph-lang-parser-outline