2017-08-27

(sph lang parser type-signature)

a parser and writer for the sph type signature notation

see also function type signature notation

part of sph-lib

import name

(sph lang parser type-signature)

exports

parsed-type-signature->string

procedure

signature

a [line-prefix] ->

list [string] -> string

description

"line-prefix" could be indent space

peg-type-signature

procedure

signature

str strlen at ->

string->parsed-type-signature

procedure

signature

a ->

string -> list/boolean

type-signature-simplify-tree

procedure

signature

a ->

description

this simplify a few cases like over-nested elements and no-arguments


tags: programming guile documentation library scheme sph-lib q1 type-signature highlight sph-lang-parser-type-signature