mirror of
https://github.com/vonhyou/lisp-interpreter.git
synced 2025-06-08 02:02:01 +00:00
update readme
This commit is contained in:
parent
1461b17e78
commit
19b8871a06
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
2
prol.rb
2
prol.rb
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue