Sha256: ad30a11c5b63d55a3ba9e8a282c61821ffb28b08ac8f967e997c0976dd1a933f
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
module Fonte module Parsers grammar SourcePlayer include Number include Word include SteamID rule source_player nickname "<" uid ">" "<" steam_id:player_steam_id ">" "<" team ">" { def value text_value end } end rule nickname (![<>] character)* { def value text_value end } end rule uid integer end rule player_steam_id steam_id / "" { def value nil end } end rule team (![<>] character)* { def value text_value == "Unassigned" || text_value == "Console" || text_value == "" ? nil : text_value end } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fonte-0.2.0 | lib/fonte/parsers/source_player.treetop |