sportdb-parser 0.6.13 → 0.6.14
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 +4 -4
- data/CHANGELOG.md +1 -1
- data/config/rounds_es.txt +3 -0
- data/lib/sportdb/parser/lang.rb +6 -1
- data/lib/sportdb/parser/lexer.rb +19 -3
- data/lib/sportdb/parser/parser.rb +578 -561
- data/lib/sportdb/parser/racc_tree.rb +7 -0
- data/lib/sportdb/parser/token.rb +18 -1
- data/lib/sportdb/parser/version.rb +1 -1
- metadata +2 -2
@@ -168,6 +168,13 @@ RoundHeader = Struct.new( :names, :group ) do
|
|
168
168
|
end
|
169
169
|
|
170
170
|
|
171
|
+
RoundOutline = Struct.new( :outline ) do
|
172
|
+
def pretty_print( printer )
|
173
|
+
printer.text( "<RoundOutline #{self.outline}>" )
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
|
171
178
|
MatchLine = Struct.new( :ord, :date, :time, :wday,
|
172
179
|
:team1, :team2,
|
173
180
|
:score, :score_note,
|
data/lib/sportdb/parser/token.rb
CHANGED
@@ -152,7 +152,7 @@ GEO_BASICS_RE = %r{
|
|
152
152
|
(?<spaces> [ ]{2,}) |
|
153
153
|
(?<space> [ ])
|
154
154
|
|
|
155
|
-
(?<sym> [
|
155
|
+
(?<sym> [,›>\[] )
|
156
156
|
}ix
|
157
157
|
|
158
158
|
|
@@ -197,5 +197,22 @@ PROP_GOAL_RE = Regexp.union(
|
|
197
197
|
)
|
198
198
|
|
199
199
|
|
200
|
+
####
|
201
|
+
#
|
202
|
+
ROUND_OUTLINE_RE = %r{ ^
|
203
|
+
[ ]* ## ignore leading spaces (if any)
|
204
|
+
(?: »|>> )
|
205
|
+
[ ]+
|
206
|
+
(?<round_outline>
|
207
|
+
## must start with letter - why? why not?
|
208
|
+
### 1st round
|
209
|
+
## allow numbers e.g. Group A - 1
|
210
|
+
.+? ## use non-greedy
|
211
|
+
)
|
212
|
+
[ ]* ## ignore trailing spaces (if any)
|
213
|
+
$
|
214
|
+
}ix
|
215
|
+
|
216
|
+
|
200
217
|
end # class Lexer
|
201
218
|
end # module SportDb
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocos
|