std.block.check

*boundaries*

dynamic

*collection-checks*

dynamic

*delimiters*

dynamic

*linebreaks*

dynamic

*token-checks*

dynamic

*void-checks*

dynamic

boundary?

added in 3.0

(boundary? c)

returns whether a char is of a boundary type

(boundary? (first “[”)) => true

(boundary? (first “"”)) => true

collection-tag

added in 3.0

(collection-tag form)

returns th tag associated with the input

(collection-tag []) => :vector

collection?

added in 3.0

(collection? form)

determines if an input is a token

(collection? {}) => true

comma?

added in 3.0

(comma? c)

returns whether a char is a comma

(comma? (first “,”)) => true

comment?

added in 3.0

(comment? s)

determines if an input is a comment string

(comment? “hello”) => false

(comment? “;hello”) => true

delimiter?

added in 3.0

(delimiter? c)

check for delimiter char

(delimiter? (first “)”)) => true

linebreak?

added in 3.0

(linebreak? c)

returns whether a char is a linebreak type

(linebreak? \newline) => true

linespace?

added in 3.0

(linespace? c)

returs whether a char is a linespace type

(linespace? \space) => true

linetab?

added in 3.0

(linetab? c)

checs if character is a tab

(linetab? (first “\t”)) => true

tag

added in 3.0

(tag checks input)

takes a set of checks and returns the key

(tag void-checks \space) => :linespace

(tag collection-checks []) => :vector

token-tag

added in 3.0

(token-tag form)

returns the tag associated with the input

(token-tag ’hello) => :symbol

token?

added in 3.0

(token? form)

determines if an input is a token

(token? 3/4) => true

void-tag

added in 3.0

(void-tag ch)

returns the tag associated with input

(void-tag \newline) => :linebreak

void?

added in 3.0

(void? ch)

determines if an input is a void input

(void? \newline) => true

voidspace-or-boundary?

added in 3.0

(voidspace-or-boundary? c)

check for void or boundary type

(->> (map voidspace-or-boundary? (concat boundaries linebreaks)) (every? true?)) => true

voidspace?

added in 3.0

(voidspace? c)

determines if an input is a void input

(voidspace? \newline) => true

whitespace?

added in 3.0

(whitespace? c)

returns whether a char is of a whitespace type

(whitespace? \space) => true