Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update parslet

  • Loading branch information...
commit ce08fca7877c00284907f2acf0fb829e4071aad8 1 parent 5f13cc7
@txus authored
View
1  Gemfile
@@ -2,4 +2,3 @@ source "http://rubygems.org"
# Specify your gem's dependencies in schemer.gemspec
gemspec
-gem 'parslet', :git => 'git://github.com/txus/parslet', :branch => 'improve_rspec_matcher'
View
12 Gemfile.lock
@@ -1,15 +1,8 @@
-GIT
- remote: git://github.com/txus/parslet
- revision: 4c7962d1cf4425674099962fb6f51c3b5b057533
- branch: improve_rspec_matcher
- specs:
- parslet (1.1.1)
- blankslate (~> 2.0)
-
PATH
remote: .
specs:
schemer (0.0.1)
+ parslet (~> 1.2.0)
GEM
remote: http://rubygems.org/
@@ -27,6 +20,8 @@ GEM
rake (>= 0.8.1)
open_gem (1.4.2)
launchy (~> 0.3.5)
+ parslet (1.2.0)
+ blankslate (~> 2.0)
rake (0.8.7)
rb-fsevent (0.3.10)
rspec (2.5.0)
@@ -45,7 +40,6 @@ PLATFORMS
DEPENDENCIES
guard
guard-rspec
- parslet!
rb-fsevent
rspec (~> 2.5.0)
schemer!
View
1  lib/schemer.rb
@@ -7,5 +7,4 @@
require 'schemer/interpreter'
module Schemer
- # Your code goes here...
end
View
2  lib/schemer/ast.rb
@@ -14,7 +14,7 @@ class CharacterLiteral < Node
attr_reader :value
def initialize(character)
- @value = character.bytes.first
+ @value = character.to_s.bytes.first
end
def inspect
View
7 schemer.gemspec
@@ -9,12 +9,13 @@ Gem::Specification.new do |s|
s.authors = ["Josep M. Bach"]
s.email = ["josep.m.bach@gmail.com"]
s.homepage = "http://txus.github.com/schemer"
- s.summary = %q{Scheme interpreter in Ruby}
- s.description = %q{A Scheme interpreter in Ruby, developed as a personal project for RMU Session 5}
+ s.summary = %q{A Scheme interpreter in Ruby}
+ s.description = %q{A Scheme interpreter in Ruby}
s.rubyforge_project = "schemer"
- # s.add_runtime_dependency 'parslet'
+ s.add_runtime_dependency 'parslet', '~> 1.2.0'
+
s.add_development_dependency 'rspec', '~> 2.5.0'
s.add_development_dependency 'guard'
s.add_development_dependency 'guard-rspec'
View
16 spec/schemer/interpreter_spec.rb
@@ -248,21 +248,5 @@ module Schemer
end
- describe "Regression tests from examples/ directory" do
- Dir["examples/*.scm"].each do |filename|
- file = File.read(filename)
- it "interprets #{filename}" do
- lexer = Schemer::Lexer.new
- parser = Schemer::Parser.new
- ast = parser.apply(lexer.parse file)
-
- interpreter = Schemer::Interpreter.new(ast)
- expect {
- interpreter.walk
- }.to_not raise_error
- end
- end
- end
-
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.