Builtins and Libraries
3.1 Global Utilities
3.2 Numbers
3.3 Strings
3.4 Booleans
3.5 Raw  Array
3.6 Tables
3.7 lists
3.8 sets
3.9 arrays
3.10 string-dict
3.11 option
3.12 pick
3.13 either
3.14 srcloc
3.15 pprint
3.16 s-exp
3.17 s-exp-structs
3.18 image-structs
3.19 image
3.20 world
3.21 gdrive-sheets
3.22 data-source
3.23 reactors
3.24 chart
3.25 plot
3.26 statistics
3.27 math
On this page:
3.17.1 The S-Exp Datatype
S-Exp
s-list
s-num
s-str
s-sym
is-s-list
is-s-num
is-s-str
is-s-sym

3.17 s-exp-structs

Usage:
include s-exp-structs
import s-exp-structs as ...

3.17.1 The S-Exp Datatype

This datatype defines the result of parsing s-expressions. See read-s-exp for more details and examples.

data S-Exp:
| s-list(exps :: List<S-Exp>)
| s-num(n :: Number)
| s-str(s :: String)
| s-sym(s :: String)
end

s-list :: (exps :: List<S-Exp>) -> S-Exp

s-num :: (n :: Number) -> S-Exp

s-str :: (s :: String) -> S-Exp

s-sym :: (s :: String) -> S-Exp

is-s-list :: (val :: Any) -> Boolean

is-s-num :: (val :: Any) -> Boolean

is-s-str :: (val :: Any) -> Boolean

is-s-sym :: (val :: Any) -> Boolean