From 19b8871a06b114e2c3842bb0eeb77eb1f7d883a2 Mon Sep 17 00:00:00 2001 From: vonhyou Date: Thu, 15 Apr 2021 01:40:53 +0800 Subject: [PATCH] update readme --- README.md | 2 +- prol.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cd51ba..99059e8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **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) diff --git a/prol.rb b/prol.rb index 54172a2..c33be1f 100644 --- a/prol.rb +++ b/prol.rb @@ -50,7 +50,7 @@ module Lisp def self.make_global @global_env ||= begin - ops = %i[== != < <= > >= + - * /] + ops = %i[== != < <= > >= + - * / % & | ^ ~] ops.inject({}) do |scope, op| scope.merge op => ->(*args) { args.inject(&op) } end