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 +8 -8
- data/lib/lexeme/lexeme.rb +3 -3
- data/lib/lexeme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OGEyYmQ3Nzc5NzZlNjFmNjYxMmY4ZTk1NTI5YTY3ZjJkMjE1OTg0Zg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YTM3NDRhYjM0YTZhYjczNzMxNGY1MTVhNzk1OWE5OTUyYmVhZGYwZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTk5Mzg4MjE5YWY5ZDE1YTRiYjBkY2VkYjFhNmRjM2VjNWMxYTYyNTQ0NjAw
|
|
10
|
+
MTliYzA4YTIwZDgxMWMyMTcxYWQ2ZmZiMzQ5ZDViZjU0ZmU3MGU4ZDhhMTAz
|
|
11
|
+
NWE0ZDU2MDA3ODk4YmFiMjBlOTRiMDE5NWUyOTk5NzBlYmQyOGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OGExODU4MWQ3YjQ5NTg1ZTFhMWU5NDk1N2ZlOWJjNTliOWM5ZTViMGJkZjRm
|
|
14
|
+
NmI4NjI4NmJkMTgxYTJlNjUxOGFhODcxMmExOWQyZWE5Njc5YWNiOWIwZDQ0
|
|
15
|
+
MGNhZmQ3NDU5YjE3ZmVjZGYxZTExOWU1MzYzZjBmNTIyYTc3MDc=
|
data/lib/lexeme/lexeme.rb
CHANGED
|
@@ -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 #{
|
|
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 #{
|
|
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 #{
|
|
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
|
data/lib/lexeme/version.rb
CHANGED
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.
|
|
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-
|
|
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
|