rubymotionlisp 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubylisp/tokenizer.rb +9 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dda4c6e2e0b9e98084434161a3c0442542e51e6c
4
- data.tar.gz: 321a515ebc17e84c7c29fca9f479d87a9b9c253d
3
+ metadata.gz: 53753df4ddcf5a29657ba493741443e54d0dba98
4
+ data.tar.gz: dc92a61fdc0c26ecbc3279b1027a868ccc970b82
5
5
  SHA512:
6
- metadata.gz: d55fb467b861a95fd5d99fd97e67e74a92e4ad39f67625679487d433f3bf475effcafc293ac9d920ac5c5141d823d8e0effbe4295c9e8e8e4e525944638c6079
7
- data.tar.gz: 75dd34314faf4e762c90805402cf530cdbce9902d1e28bb42931342a3d5e66eee359ed0d453037811f848d0c3d4110a8a893ab78daa43822c4905e3ef3503a2a
6
+ metadata.gz: 12afa6bf5cc8e4022ab8d3800665b9af8a0ab2b4c6620f418c4d9f1bac0deefd06e9436bbf2c4e23f14961deb17ae6b34c06ce22a2136794c1441de7b3994bfd
7
+ data.tar.gz: d488dce94f246806ba56b83aab5e94ab9c6b5df9092913b40609132dcf60eb2bac33434793519ec11dbcd4df8ac875d3e5f6d9dab34dbbf2938bed886d8a69bd
@@ -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
- @line_number += 1 if @current_ch == "\n"
213
- advance
214
- return :EOF, '' if eof?
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 number?(@current_ch)
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.3
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: 2015-02-10 00:00:00.000000000 Z
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