lisp-interpreter 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/lib/lisp/interpreter/checker.rb +2 -2
- data/lib/lisp/interpreter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a32a4cd97461f14188bf1b027ad55b064ed893a
|
4
|
+
data.tar.gz: 80ead2abacc84ff413669a5805716e814284da36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79a95a9317b805b2c45f7620b4327b03bd6a49cb64b803191851610558e76b96c4bb3a81503d9b3771527c05aaad5ab3e6ae3866b2b5eb0be4f9d89aeebf49af
|
7
|
+
data.tar.gz: 4240e236f9eddfc406f00fee48ce2d2efc45b1054c06854a7cea9298f828f2c14ec440f5ed69503a96a99235a751480c61d8295ffce8638e03032b95c9481eee
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Lisp::Interpreter
|
1
|
+
# Lisp::Interpreter
|
2
2
|
Lisp interpreter implemented in Ruby.
|
3
3
|
|
4
4
|
## Installation
|
@@ -156,9 +156,7 @@ other:
|
|
156
156
|
|
157
157
|
## Development
|
158
158
|
|
159
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/
|
160
|
-
|
161
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
159
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/zakichan` for an interactive prompt that will allow you to experiment.
|
162
160
|
|
163
161
|
## Contributing
|
164
162
|
|
@@ -24,7 +24,7 @@ module SchemeChecker
|
|
24
24
|
def check_for_quote(token)
|
25
25
|
return true if token[0].quote?
|
26
26
|
is_instance_var = check_instance_var token
|
27
|
-
return true if is_instance_var && (
|
27
|
+
return true if is_instance_var && (check_for_quote get_var token)
|
28
28
|
false
|
29
29
|
end
|
30
30
|
|
@@ -39,7 +39,7 @@ module SchemeChecker
|
|
39
39
|
return true if var == '#\space'
|
40
40
|
return true if var.character?
|
41
41
|
is_instance_var = check_instance_var var
|
42
|
-
return true if is_instance_var && (
|
42
|
+
return true if is_instance_var && (check_for_symbol get_var var)
|
43
43
|
false
|
44
44
|
end
|
45
45
|
end
|