lexeme 0.0.5 → 0.0.6

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODliZDY5NjQ5YTlmZmRjZTYyYjRhNjJlZmVlNWIxYTJiOTdmMWYyYw==
4
+ OGEyYmQ3Nzc5NzZlNjFmNjYxMmY4ZTk1NTI5YTY3ZjJkMjE1OTg0Zg==
5
5
  data.tar.gz: !binary |-
6
- NjFhZWRlMjY0NmEwMDk2MjZiMGU1NWY1YWFmYWZjZDA5MzQ5NGJjMw==
6
+ YTM3NDRhYjM0YTZhYjczNzMxNGY1MTVhNzk1OWE5OTUyYmVhZGYwZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzE0YWJjYzY4OGQ3NThlM2FlYTQ0ODc0MjE3MWE4ZjFmYWM3Zjk4MmQ3MDA0
10
- NTYyNDc3NzJmYjQxYmY1ZGM0YjM0OTFiYzIxZGVmOGFiMjViODIwZGI5Y2Ix
11
- M2ZiOTQ0YTYzMzRjMmVlZDg1MWNkNzllMTRmNjI4YWFiNDc3NmE=
9
+ MTk5Mzg4MjE5YWY5ZDE1YTRiYjBkY2VkYjFhNmRjM2VjNWMxYTYyNTQ0NjAw
10
+ MTliYzA4YTIwZDgxMWMyMTcxYWQ2ZmZiMzQ5ZDViZjU0ZmU3MGU4ZDhhMTAz
11
+ NWE0ZDU2MDA3ODk4YmFiMjBlOTRiMDE5NWUyOTk5NzBlYmQyOGE=
12
12
  data.tar.gz: !binary |-
13
- MzE4Mjk4NTIxZDkwYzkwOTE4ZjFmN2ExMDMyNjJlYWYxZWEzMDg4YjA0Nzhm
14
- YTNjNjI5MzJiNGY3ZTI0ZDY4OGQwYTMyYTkwOTg5ODdiYzNmMzBmMzRhMmNi
15
- OTdhYzY1OWRlMTdlN2Q0YmMwNTcxNzAzMzE4MjIwZTgzODM0NDQ=
13
+ OGExODU4MWQ3YjQ5NTg1ZTFhMWU5NDk1N2ZlOWJjNTliOWM5ZTViMGJkZjRm
14
+ NmI4NjI4NmJkMTgxYTJlNjUxOGFhODcxMmExOWQyZWE5Njc5YWNiOWIwZDQ0
15
+ MGNhZmQ3NDU5YjE3ZmVjZGYxZTExOWU1MzYzZjBmNTIyYTc3MDc=
@@ -77,12 +77,12 @@ module Lexeme
77
77
  current << c
78
78
 
79
79
  if !identifiable?(current)
80
- raise RuntimeError, "Unknown token `#{current}` on line #{line}" if
80
+ raise RuntimeError, "Unknown token `#{current}` on line #{line_num - new_line}" if
81
81
  previous.empty?
82
82
 
83
83
  token = identify(previous, line_num - new_line)
84
84
 
85
- raise RuntimeError, "Unknown token `#{previous}` on line #{line}" if
85
+ raise RuntimeError, "Unknown token `#{previous}` on line #{line_num - new_line}" if
86
86
  token.nil? || token.name.nil?
87
87
 
88
88
  tokens << token
@@ -96,7 +96,7 @@ module Lexeme
96
96
 
97
97
  if !previous.empty? && !ignorable?(previous)
98
98
  token = identify(previous, line_num - new_line)
99
- raise RuntimeError, "Unknow token `#{previous}` on line #{line}" if
99
+ raise RuntimeError, "Unknow token `#{previous}` on line #{line_num - new_line}" if
100
100
  token.nil? || token.name.nil?
101
101
 
102
102
  tokens << token
@@ -1,3 +1,3 @@
1
1
  module Lexeme
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Ivic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple lexical analyzer written in Ruby
14
14
  email: vladimir.ivic@icloud.com