2017-09-29

(sph lang ecmascript expressions)

create ecmascript syntax strings.

library description

procedures should only receive and return strings

import name

(sph lang ecmascript expressions)

exports

es-apply

procedure

signature

name [a] ->

string (string ...) -> string

es-array

procedure

signature

contents ->

es-chain

procedure

signature

name base a ->

string string (string ...) -> string

es-comma-join

procedure

signature

a ->

es-curly-brackets

procedure

signature

a ->

es-declare

procedure

signature

names ->

list -> string

es-define

procedure

signature

a ->

((key . value) ...) -> string

es-escape-single-char

variable

es-for

procedure

signature

init test update body ->

es-function

procedure

signature

[body formals name] ->

es-get

procedure

signature

a keys ... ->

es-identifier

procedure

signature

a ->

es-if

procedure

signature

test consequent [alternate] ->

es-if-expression

procedure

signature

test consequent [alternate] ->

es-new

procedure

signature

name a ->

es-object

procedure

signature

key/value ->

((key . value) ...) -> string

es-regexp

procedure

signature

pattern [modifiers] ->

es-set

procedure

signature

a ->

((name . value) ...) -> string

es-square-brackets

procedure

signature

a ->

es-string

procedure

signature

a ->

es-switch

procedure

signature

value cases ->

string ((test/symbol:else consequent ...) ...) -> string

es-try-catch-finally

procedure

signature

try [catch-formal catch finally] ->

es-value

procedure

signature

a ->

description

handles the default conversions between scheme and ecmascript types

sph-lang-ecmascript-expressions-description

variable

tags: guile documentation library scheme sph-lib computer sph-lang-ecmascript-expressions