2017-08-27

(sph lang itpn)

helpers for working with parsed itpn

library description

itpn: indent tree packet notation

ittpn: indent tree tag packet notation

import name

(sph lang itpn)

exports

itfpn-tags

procedure

signature

a ->

parsed-itpn -> (string ...)

description

may include duplicates

itfpn-tags-sort

procedure

signature

a less? ->

itpn-filter

procedure

signature

a patterns-prefix patterns-suffix patterns-anywhere string-contains-multiple? parts-combination ->

parsed-itpn (string ...) (string ...) (string ...) procedure:{string (string ...) -> boolean} procedure:{any ... -> boolean/any:last} -> list:(filtered rejected)

description

filters itpn elements where all patterns of a set match in the corresponding portion - prefix, suffix or anywhere.

the empty set matches all

itpn-filter-all-patterns-all-parts

procedure

signature

a patterns-prefix patterns-suffix patterns-anywhere ->

list list list -> (list list)

description

filters packets where all patterns-prefix match the prefix and all patterns-suffix match the suffix

itpn-filter-some-patterns-some-parts

procedure

signature

a patterns-prefix patterns-suffix patterns-anywhere ->

list list list -> (list list)

description

filters packets where some patterns-prefix match the prefix or some patterns-suffix match the suffix

itpn-from-file

procedure

signature

path ->

-> parsed-itpn

itpn-from-port

procedure

signature

a ->

-> parsed-itpn

itpn-packets-sort

procedure

signature

a less? ->

itpn-prefixes

procedure

signature

a ->

itpn-string

procedure

signature

a ->

parsed-itpn -> string

line->tags

procedure

signature

a ->

tags->line

procedure

signature

a ->


tags: documentation library sph-lib q1 highlight sph-lang-itpn