code-lexer 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code-lexer/abstractor.rb +10 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e953d35e258951fec7845c7e78b19918733e9c531db7b4bbf075008e9c37d1d
|
4
|
+
data.tar.gz: eea84826ff95b4ff9ea49aac52e2777968168485e2ea5205a73f9197550dc5cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a731c6149fc98518ef8c36963794173c3463b4626b15513317a46e0a933c6e734ad0ee749d4631505a2ee5a4524d600f0a4901a825b132d9f89ec148f0c6d138
|
7
|
+
data.tar.gz: a8ad70dc8c4eb7189bb84d153c9bc6c99dc709ab28a0295074c596322190392b72d2205739351850786a46faee6d6d99ec85a1d4dcbc60d928c311ee9ca3d1a8
|
@@ -8,6 +8,16 @@ module CodeLexer
|
|
8
8
|
@dictionary = ["NOOP"] + dictionary
|
9
9
|
end
|
10
10
|
|
11
|
+
def abstract_everything
|
12
|
+
self.abstract_identifiers
|
13
|
+
self.abstract_numbers
|
14
|
+
self.abstract_comments
|
15
|
+
self.abstract_strings
|
16
|
+
self.abstract_spaces
|
17
|
+
|
18
|
+
return self
|
19
|
+
end
|
20
|
+
|
11
21
|
def abstract_identifiers
|
12
22
|
@abstract_identifiers = true
|
13
23
|
return self
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code-lexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Scalabrino
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-11-28 00:00:00.000000000 Z
|
@@ -47,7 +47,7 @@ homepage: https://github.com/intersimone999/code-lexer
|
|
47
47
|
licenses:
|
48
48
|
- GPL-3.0-only
|
49
49
|
metadata: {}
|
50
|
-
post_install_message:
|
50
|
+
post_install_message:
|
51
51
|
rdoc_options: []
|
52
52
|
require_paths:
|
53
53
|
- lib
|
@@ -62,8 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.2.
|
66
|
-
signing_key:
|
65
|
+
rubygems_version: 3.2.32
|
66
|
+
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Simple source code lexer
|
69
69
|
test_files: []
|