rubymotionlisp 1.0.3 → 1.0.5
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/lib/rubylisp/tokenizer.rb +9 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53753df4ddcf5a29657ba493741443e54d0dba98
|
4
|
+
data.tar.gz: dc92a61fdc0c26ecbc3279b1027a868ccc970b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12afa6bf5cc8e4022ab8d3800665b9af8a0ab2b4c6620f418c4d9f1bac0deefd06e9436bbf2c4e23f14961deb17ae6b34c06ce22a2136794c1441de7b3994bfd
|
7
|
+
data.tar.gz: d488dce94f246806ba56b83aab5e94ab9c6b5df9092913b40609132dcf60eb2bac33434793519ec11dbcd4df8ac875d3e5f6d9dab34dbbf2938bed886d8a69bd
|
data/lib/rubylisp/tokenizer.rb
CHANGED
@@ -24,6 +24,7 @@ module Lisp
|
|
24
24
|
init
|
25
25
|
end
|
26
26
|
|
27
|
+
|
27
28
|
def advance
|
28
29
|
if @source.eof?
|
29
30
|
@eof = true
|
@@ -208,13 +209,15 @@ module Lisp
|
|
208
209
|
def read_next_token
|
209
210
|
return :EOF, '' if eof?
|
210
211
|
|
211
|
-
while space?(@current_ch)
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
end
|
212
|
+
# while space?(@current_ch)
|
213
|
+
# @line_number += 1 if @current_ch == "\n"
|
214
|
+
# advance
|
215
|
+
# return :EOF, '' if eof?
|
216
|
+
# end
|
216
217
|
|
217
|
-
if
|
218
|
+
if space?(@current_ch)
|
219
|
+
return :WHITESPACE, " "
|
220
|
+
elsif number?(@current_ch)
|
218
221
|
return read_number(false)
|
219
222
|
elsif @current_ch == '-' && number?(@next_ch)
|
220
223
|
return read_number(false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubymotionlisp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Astels
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: An embeddable Lisp as an extension language for RubyMotion
|
14
14
|
email: dastels@icloud.com
|