sportdb-parser 0.6.5 → 0.6.7
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/lib/sportdb/parser/lexer.rb +5 -5
- data/lib/sportdb/parser/parser.rb +353 -356
- data/lib/sportdb/parser/racc_tree.rb +3 -2
- data/lib/sportdb/parser/token.rb +2 -1
- data/lib/sportdb/parser/version.rb +1 -1
- metadata +2 -2
@@ -77,8 +77,9 @@ end
|
|
77
77
|
Sub = Struct.new( :minute, :sub ) do
|
78
78
|
def pretty_print( printer )
|
79
79
|
buf = String.new
|
80
|
-
buf << "(
|
81
|
-
buf << "
|
80
|
+
buf << "(" ## note - possibly recursive (thus, let minute go first/print first/upfront)
|
81
|
+
buf << "#{self.minute.to_s} " if self.minute
|
82
|
+
buf << "#{self.sub.pretty_inspect}"
|
82
83
|
buf << ")"
|
83
84
|
printer.text( buf )
|
84
85
|
end
|
data/lib/sportdb/parser/token.rb
CHANGED
@@ -171,10 +171,11 @@ GOAL_RE = Regexp.union(
|
|
171
171
|
PROP_NAME_RE, ## note - (re)use prop name for now for (player) name
|
172
172
|
)
|
173
173
|
|
174
|
+
## note - leave out n/a minute in goals - make minutes optional!!!
|
174
175
|
PROP_GOAL_RE = Regexp.union(
|
175
176
|
GOAL_BASICS_RE,
|
176
177
|
MINUTE_RE,
|
177
|
-
|
178
|
+
## MINUTE_NA_RE, ## note - add/allow not/available (n/a,na) minutes hack for now
|
178
179
|
GOAL_OG_RE, GOAL_PEN_RE,
|
179
180
|
SCORE_RE,
|
180
181
|
PROP_NAME_RE, ## note - (re)use prop name for now for (player) name
|
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.7
|
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-
|
11
|
+
date: 2025-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocos
|