antelope 0.1.0 → 0.1.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac4549b5e4618c5599316bc58c0838ff573edc2c
4
- data.tar.gz: d7fc04521edb6b4f6d49c500e1410f683863f1a9
3
+ metadata.gz: e869096803def22c3c51670d07b69ca500b62818
4
+ data.tar.gz: aa9bc4c8ec37f35ce319ea9581563a1a9573f067
5
5
  SHA512:
6
- metadata.gz: 86e201447c094f12642b131464f225e4a4b8c743813800b93b296b95ad0e77c5e2516b1a3ff43e06a1502991c2980764528ad1fa6e6a79d03b741c92d253626a
7
- data.tar.gz: cfca26b2b0d3c01934c6647bcf01f79ee3403acd898718c3c80fe62fcaa1bd415fded4d97cb7c0d167b35180a564711c9d632764ec20534293a76d4688383b50
6
+ metadata.gz: e04d7fc30bb8ab39b793ab2336f77083a88082fc13274d3a93d3d6f5125580c4e2a892142190722e2e76ce9ceb0c5c40d1fbc50bca55c99cfefd569b0f3223c7
7
+ data.tar.gz: 87d2c712bf3158daeb97abeb40d4ce4afb0e3684f42e87aec11236826437dee1580c23444bcb7a05fda28fcfcce3c23ede0cc4d057dc1f5483c8d594dcbbc49c
@@ -1,8 +1,4 @@
1
- %{
2
- require "antelope"
3
- %}
4
-
5
- %require "0.0.1"
1
+ %require "~> 0.1"
6
2
  %type "ruby"
7
3
 
8
4
  %terminal NUMBER
data/examples/example.ace CHANGED
@@ -1,4 +1,4 @@
1
- %require "0.0.1"
1
+ %require "~> 0.1"
2
2
  %type "ruby"
3
3
 
4
4
  %terminal NUMBER
data/examples/simple.ace CHANGED
@@ -1,8 +1,4 @@
1
- %{
2
- require "antelope"
3
- %}
4
-
5
- %require "0.0.1"
1
+ %require "~> 0.1"
6
2
  %type "ruby"
7
3
 
8
4
  %terminal IDENT
@@ -43,7 +43,7 @@ module Antelope
43
43
  # @see #scan_second_rule_body
44
44
  # @see #error!
45
45
  def scan_second_rule
46
- if @scanner.check(/([a-z]+):/)
46
+ if @scanner.check(/([a-z._-]+):/)
47
47
  scan_second_rule_label or error!
48
48
  scan_second_rule_body
49
49
  true
@@ -55,7 +55,7 @@ module Antelope
55
55
  #
56
56
  # @return [Boolean] if it matched.
57
57
  def scan_second_rule_label
58
- if @scanner.scan(/([a-z]+): ?/)
58
+ if @scanner.scan(/([a-z._-]+): ?/)
59
59
  tokens << [:label, @scanner[1]]
60
60
  end
61
61
  end
@@ -86,7 +86,7 @@ module Antelope
86
86
  #
87
87
  # @return [Boolean] if it matched.
88
88
  def scan_second_rule_part
89
- if @scanner.scan(/([A-Za-z]+)(?!\:)/)
89
+ if @scanner.scan(/([A-Za-z._-]+)(?!\:)/)
90
90
  tokens << [:part, @scanner[1]]
91
91
  end
92
92
  end
@@ -105,7 +105,7 @@ module Antelope
105
105
  #
106
106
  # @return [Boolean] if it matched.
107
107
  def scan_second_rule_prec
108
- if @scanner.scan(/%prec ([A-Za-z]+)/)
108
+ if @scanner.scan(/%prec ([A-Za-z._-]+)/)
109
109
  tokens << [:prec, @scanner[1]]
110
110
  end
111
111
  end
@@ -1,4 +1,4 @@
1
1
  module Antelope
2
2
  # The current running version of antelope.
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antelope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi