update readme

This commit is contained in:
vonhyou 2021-04-15 01:40:53 +08:00
parent 1461b17e78
commit 19b8871a06
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
**PRO**cessor of **L**ist for Mathematical Calculation **PRO**cessor of **L**ist for Mathematical Calculation
It's a simple minimal lisp interpreter written by ruby. It's a simple minimal lisp interpreter written in ruby.
![](./screenshot/demo.svg) ![](./screenshot/demo.svg)

View file

@ -50,7 +50,7 @@ module Lisp
def self.make_global def self.make_global
@global_env ||= begin @global_env ||= begin
ops = %i[== != < <= > >= + - * /] ops = %i[== != < <= > >= + - * / % & | ^ ]
ops.inject({}) do |scope, op| ops.inject({}) do |scope, op|
scope.merge op => ->(*args) { args.inject(&op) } scope.merge op => ->(*args) { args.inject(&op) }
end end