This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A very simple and awesome Lisp interpreter in ruby | |
# Usage: | |
# require './rb_lisp.rb' | |
# RBLisp::Interpreter.new("(print (+ 5 (* 99 5)))") # => will print 500 | |
module RBLisp | |
class Value | |
attr_accessor :type, :value | |
def initialize(args) |