code-lexer 0.1 → 0.2

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/code-lexer/abstractor.rb +10 -0
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6c98649f07e77d4148fb744db9b79fb0ed714113d6aaee7cf02f249868070c9
4
- data.tar.gz: 6c6deb5e8f6778a036dd60cf49d649192620455d0197358b4783e0df0dd91bce
3
+ metadata.gz: 3e953d35e258951fec7845c7e78b19918733e9c531db7b4bbf075008e9c37d1d
4
+ data.tar.gz: eea84826ff95b4ff9ea49aac52e2777968168485e2ea5205a73f9197550dc5cf
5
5
  SHA512:
6
- metadata.gz: 60556343e374a1c7ea58a076473fa98e9a15f4b8a89451788675a2415eb7c2da05f9255463abe9a2ae75da239c84a6186f8d5bc7aa570dd16580bdd8e685a7e7
7
- data.tar.gz: 974dcf39a0a41c496f61429dd0e5b16557a80be856fef450dddac29a19ca72dc4b4ed0c33a2ff9226a4c683af665b44d1b26c2b36ac49d15cd96d47cc350cd20
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.1'
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.29
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: []