lib/fonte/parsers/player.treetop in fonte-0.1.0 vs lib/fonte/parsers/player.treetop in fonte-0.2.0

- old
+ new

@@ -1,37 +1,12 @@ module Fonte module Parsers grammar Player - include Number - include Word - include SteamID + include SourcePlayer + include L4D2Player rule player - nickname "<" uid ">" "<" steam_id ">" "<" team ">" { - def value - text_value - end - } - end - - rule nickname - (![<>] .)* { - def value - text_value - end - } - end - - rule uid - integer - end - - rule team - (![<>] character)* { - def value - text_value == "Unassigned" || text_value == "Console" || text_value == "" ? nil : text_value - end - } + l4d2_player / source_player end end end end