2018-05-20

sph-sc

compiles s-expressions to c

documentation on github

library description

main algorithm: source code is parsed using scheme read, resulting in a list of expressions / syntax tree.

  the syntax tree is traversed top to bottom and eventually bottom to top and matching elements are

  mapped to strings which are joined to the result in the end

import name

(sph lang sc)

exports

sc->c

procedure

signature

a [load-paths] ->

expression [(string ...)] -> string

sc-default-load-paths

variable

sc-syntax-check

procedure

signature

a load-paths ->

list:expressions (string ...) -> boolean | exception

sc-syntax-error

procedure

signature

[irritant syntax-name expected] ->

description

false/any false/symbol false/(any ...) | exception

sc-syntax-error?

procedure

signature

a ->

sph-lang-sc-description

variable

tags: programming guile library scheme overview start q1 computer project sc sph-sc