module Crisp
Extended Modules
Defined in:
crisp/core.crcrisp/env.cr
crisp/error.cr
crisp/evaluator.cr
crisp/expr.cr
crisp/interpreter.cr
crisp/printer.cr
crisp/reader.cr
Constant Summary
-
NameSpace =
{"+" => calc_op(:+), "-" => calc_op(:-), "*" => calc_op(:*), "/" => calc_op(://), "list" => func(:list), "list?" => func(:"list?"), "empty?" => func(:"empty?"), "count" => func(:count), "=" => rel_op(:==), "<" => rel_op(:<), ">" => rel_op(:>), "<=" => rel_op(:<=), ">=" => rel_op(:>=), "pr-str" => func(:pr_str), "str" => func(:str), "prn" => func(:prn), "println" => func(:println), "read-string" => func(:read_string), "slurp" => func(:slurp), "cons" => func(:cons), "concat" => func(:concat), "nth" => func(:nth), "first" => func(:first), "rest" => func(:rest), "throw" => ->(args : Array(Crisp::Expr)) do raise(Crisp::RuntimeException.new(args[0])) end, "apply" => func(:apply), "map" => func(:map), "nil?" => func(:"nil_value?"), "true?" => func(:"true?"), "false?" => func(:"false?"), "symbol?" => func(:"symbol?"), "symbol" => func(:symbol), "keyword" => func(:keyword), "keyword?" => func(:"keyword?"), "vector" => func(:vector), "vector?" => func(:"vector?"), "hash-map" => func(:hash_map), "map?" => func(:"map?"), "assoc" => func(:assoc), "dissoc" => func(:dissoc), "get" => func(:get), "contains?" => func(:"contains?"), "keys" => func(:keys), "vals" => func(:vals), "sequential?" => func(:"sequential?"), "readline" => func(:readline), "meta" => func(:meta), "with-meta" => func(:with_meta), "atom" => func(:atom), "atom?" => func(:"atom?"), "deref" => func(:deref), "deref" => func(:deref), "reset!" => func(:"reset!"), "swap!" => func(:"swap!"), "conj" => func(:conj), "time-ms" => func(:time_ms)} of String => Crisp::Func
Instance Method Summary
- #apply(args)
- #assoc(args)
- #atom(args)
- #atom?(args)
- #concat(args)
- #conj(args)
- #cons(args)
- #contains?(args)
- #count(args)
- #deref(args)
- #dissoc(args)
- #empty?(args)
- #eval_error(msg)
- #false?(args)
- #first(args)
- #get(args)
- #hash_map(args)
- #keys(args)
- #keyword(args)
- #keyword?(args)
- #list(args)
- #list?(args)
- #map(args)
- #map?(args)
- #meta(args)
- #nil_value?(args)
- #nth(args)
- #parse_error(msg)
- #pr_str(args)
- #println(args)
- #prn(args)
- #read_str(str)
- #read_string(args)
- #readline(args)
- #reset!(args)
- #rest(args)
- #sequential?(args)
- #slurp(args)
- #str(args)
- #swap!(args)
- #symbol(args)
- #symbol?(args)
- #time_ms(args)
- #tokenize(str)
- #true?(args)
- #vals(args)
- #vector(args)
- #vector?(args)
- #with_meta(args)
Macro Summary
- calc_op(op)
-
func(name)
Note: Simply using ->self.some_func doesn't work
- rel_op(op)