A rewrite using parse rules, and a parse dialect that the bot can now understand.

Signed-off-by: Graham Chiu <compkarori@gmail.com>