An action parser. Needs tests, though