项目作者: rvcas

项目描述 :
A Minimal Lispy Calculator
高级语言: Zig
项目地址: git://github.com/rvcas/crisp.git
创建时间: 2017-09-22T14:47:19Z
项目社区:https://github.com/rvcas/crisp

开源协议:

下载


Crisp

A very minimal lispy calculator implemented in zig

Running Crisp

Operations

  • + add a sequence of numbers
    • (+ 1 2 3)
  • - subtract a sequence of numbers
    • (- 3 2)
  • * multiply a sequence of numbers
    • (* 3 5 2)
  • / divide a sequence of numbers
    • (/ 12 4)
    • decimals are not supported. meaning: (/ 2 4) => 0
      • everything is floored
    • divide by zero results in an error