ebnf 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/VERSION +1 -1
  4. data/bin/ebnf +4 -1
  5. data/lib/ebnf/base.rb +0 -1
  6. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b0233cc19d80ca25dc2221725770bc87a47d0f0
4
- data.tar.gz: e381edc76658d0f56816c4ddc107417df301c9cc
3
+ metadata.gz: 9beea76a6ce73ec7ecd512e5b6b6a9a9057059aa
4
+ data.tar.gz: 7bbcfb97700d781070d276ca3e5a378fc0fdb9f4
5
5
  SHA512:
6
- metadata.gz: 18415d7b3393069f09d0af3c6433722c3aadfd4f3b5eca67c763294dd81584c9e435eb2aab6e27d15cf557f1d8587bfc67c3671e64797523340f06560c42f27c
7
- data.tar.gz: bc6917f74c4420facfee72e7089d225545e49d201653731dd1caa28eb71f547b3c8231b44175b9144f2b7c9d4ac979088d4647c487e885adc624c046c9c595fd
6
+ metadata.gz: 3b84a0e8f12ab0e83d7cd37f88c5ce960ee80c86e485f49a8f3125f53d5aa3614300209c974904a5c86bfe7c97069be697e61182d464869423b5f6499d55f21c
7
+ data.tar.gz: 9e1bfdf21b091b61e892a614be05f1f6d43d9c5a42530142bd0d005e0a79438fbc7a7009502260ddaad1b2b3adeb7ea850353c159672224feed3319f4d7f4ffd
data/README.md CHANGED
@@ -28,7 +28,7 @@ Of note in this implementation is that the tokenizer and parser are streaming, s
28
28
 
29
29
  require 'ebnf'
30
30
 
31
- ebnf = EBNF.parse(File.open(./etc/ebnf.bnf))
31
+ ebnf = EBNF.parse(File.open('./etc/ebnf.bnf'))
32
32
 
33
33
  Output rules and terminals as S-Expressions, Turtle or EBNF
34
34
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/bin/ebnf CHANGED
@@ -77,7 +77,10 @@ input = File.open(ARGV[0]) if ARGV[0]
77
77
 
78
78
  ebnf = EBNF.parse(input || STDIN, options)
79
79
  ebnf.make_bnf if options[:bnf] || options[:ll1]
80
- ebnf.first_follow(*options[:ll1]) if options[:ll1]
80
+ if options[:ll1]
81
+ ebnf.first_follow(*options[:ll1])
82
+ ebnf.build_tables
83
+
81
84
 
82
85
  res = case options[:output_format]
83
86
  when :ebnf then ebnf.to_s
data/lib/ebnf/base.rb CHANGED
@@ -197,7 +197,6 @@ module EBNF
197
197
  # @param [Hash{Symbol => Object}] options
198
198
  # @option options [String] :grammarFile
199
199
  def to_ruby(output = STDOUT, options = {})
200
- self.build_tables
201
200
  unless output == STDOUT
202
201
  output.puts "# This file is automatically generated by #{__FILE__}"
203
202
  output.puts "# BRANCH derived from #{options[:grammarFile]}" if options[:grammarFile]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebnf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-10 00:00:00.000000000 Z
11
+ date: 2017-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sxp
@@ -30,84 +30,84 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: haml
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
47
+ version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.0'
54
+ version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '3.6'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: '3.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
75
+ version: '1.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.0'
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.8'
89
+ version: '0.9'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.8'
96
+ version: '0.9'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '10.4'
103
+ version: '12.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '10.4'
110
+ version: '12.0'
111
111
  description: EBNF is a Ruby parser for W3C EBNF and a parser generator for compliant
112
112
  LL(1) grammars.
113
113
  email: public-rdf-ruby@w3.org
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.6.8
172
+ rubygems_version: 2.6.12
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: EBNF parser and parser generator.