ebnf 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +81 -36
- data/VERSION +1 -1
- data/bin/ebnf +34 -18
- data/etc/abnf-core.ebnf +52 -0
- data/etc/abnf.abnf +121 -0
- data/etc/abnf.ebnf +124 -0
- data/etc/abnf.sxp +45 -0
- data/etc/ebnf.ebnf +19 -25
- data/etc/ebnf.html +251 -206
- data/etc/ebnf.ll1.rb +27 -103
- data/etc/ebnf.ll1.sxp +105 -102
- data/etc/ebnf.peg.rb +54 -62
- data/etc/ebnf.peg.sxp +53 -62
- data/etc/ebnf.sxp +22 -19
- data/etc/iso-ebnf.ebnf +140 -0
- data/etc/iso-ebnf.isoebnf +138 -0
- data/etc/iso-ebnf.sxp +65 -0
- data/etc/sparql.ebnf +4 -4
- data/etc/sparql.sxp +8 -7
- data/etc/turtle.ebnf +3 -3
- data/etc/turtle.sxp +22 -20
- data/lib/ebnf.rb +3 -0
- data/lib/ebnf/abnf.rb +301 -0
- data/lib/ebnf/abnf/core.rb +23 -0
- data/lib/ebnf/abnf/meta.rb +111 -0
- data/lib/ebnf/base.rb +87 -44
- data/lib/ebnf/ebnf/meta.rb +90 -0
- data/lib/ebnf/isoebnf.rb +229 -0
- data/lib/ebnf/isoebnf/meta.rb +75 -0
- data/lib/ebnf/ll1.rb +4 -7
- data/lib/ebnf/ll1/parser.rb +12 -4
- data/lib/ebnf/native.rb +320 -0
- data/lib/ebnf/parser.rb +285 -302
- data/lib/ebnf/peg.rb +1 -1
- data/lib/ebnf/peg/parser.rb +24 -5
- data/lib/ebnf/peg/rule.rb +77 -58
- data/lib/ebnf/rule.rb +352 -121
- data/lib/ebnf/terminals.rb +13 -10
- data/lib/ebnf/writer.rb +550 -78
- metadata +48 -6
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: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sxp
|
@@ -67,19 +67,47 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rdf-turtle
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '3.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: erubis
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.7'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: nokogiri
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.10'
|
76
104
|
type: :development
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
108
|
- - "~>"
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
110
|
+
version: '1.10'
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
112
|
name: rspec
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +178,10 @@ files:
|
|
150
178
|
- UNLICENSE
|
151
179
|
- VERSION
|
152
180
|
- bin/ebnf
|
181
|
+
- etc/abnf-core.ebnf
|
182
|
+
- etc/abnf.abnf
|
183
|
+
- etc/abnf.ebnf
|
184
|
+
- etc/abnf.sxp
|
153
185
|
- etc/doap.ttl
|
154
186
|
- etc/ebnf.ebnf
|
155
187
|
- etc/ebnf.html
|
@@ -158,6 +190,9 @@ files:
|
|
158
190
|
- etc/ebnf.peg.rb
|
159
191
|
- etc/ebnf.peg.sxp
|
160
192
|
- etc/ebnf.sxp
|
193
|
+
- etc/iso-ebnf.ebnf
|
194
|
+
- etc/iso-ebnf.isoebnf
|
195
|
+
- etc/iso-ebnf.sxp
|
161
196
|
- etc/sparql.ebnf
|
162
197
|
- etc/sparql.html
|
163
198
|
- etc/sparql.ll1.sxp
|
@@ -172,12 +207,19 @@ files:
|
|
172
207
|
- etc/turtle.peg.sxp
|
173
208
|
- etc/turtle.sxp
|
174
209
|
- lib/ebnf.rb
|
210
|
+
- lib/ebnf/abnf.rb
|
211
|
+
- lib/ebnf/abnf/core.rb
|
212
|
+
- lib/ebnf/abnf/meta.rb
|
175
213
|
- lib/ebnf/base.rb
|
176
214
|
- lib/ebnf/bnf.rb
|
215
|
+
- lib/ebnf/ebnf/meta.rb
|
216
|
+
- lib/ebnf/isoebnf.rb
|
217
|
+
- lib/ebnf/isoebnf/meta.rb
|
177
218
|
- lib/ebnf/ll1.rb
|
178
219
|
- lib/ebnf/ll1/lexer.rb
|
179
220
|
- lib/ebnf/ll1/parser.rb
|
180
221
|
- lib/ebnf/ll1/scanner.rb
|
222
|
+
- lib/ebnf/native.rb
|
181
223
|
- lib/ebnf/parser.rb
|
182
224
|
- lib/ebnf/peg.rb
|
183
225
|
- lib/ebnf/peg/parser.rb
|
@@ -205,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
247
|
- !ruby/object:Gem::Version
|
206
248
|
version: '0'
|
207
249
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
250
|
+
rubygems_version: 3.1.3
|
209
251
|
signing_key:
|
210
252
|
specification_version: 4
|
211
253
|
summary: EBNF parser and parser generator.
|