2015-07-08 02:56:11 +00:00
|
|
|
{car, cdr, listp} = require 'cons-lists/lists'
|
2015-07-03 22:47:04 +00:00
|
|
|
|
|
|
|
symbol = (form) -> (car form)
|
|
|
|
|
|
|
|
module.exports =
|
2015-07-08 02:56:11 +00:00
|
|
|
astObject: (form) -> typeof (car form) == "string"
|
2015-07-03 22:47:04 +00:00
|
|
|
aSymbol: symbol
|
|
|
|
aValue: (form) -> (car cdr form)
|
|
|
|
isAList: (form) -> (symbol form) == 'list'
|
|
|
|
isARecord: (form) -> (symbol form) == 'record'
|
|
|
|
isAVector: (form) -> (symbol form) == 'vector'
|