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

- old
+ new

@@ -7,14 +7,22 @@ rule rcon_command rcon_failure / rcon_success end rule rcon_success - "Rcon:" SPACE rcon_challenge <Fonte::Nodes::RconCommandNode> + "Rcon:" SPACE rcon_challenge <Fonte::Nodes::RconCommandNode> { + def value + "successfully rcon" + end + } end rule rcon_failure - "Bad Rcon:" SPACE rcon_challenge <Fonte::Nodes::RconCommandNode> + "Bad Rcon:" SPACE rcon_challenge <Fonte::Nodes::RconCommandNode> { + def value + "bad rcon" + end + } end rule rcon_challenge QUOTE "rcon challenge" SPACE rcon_password SPACE "command" QUOTE SPACE rcon_origin end