feat(frontends/lean/calc): add parse_calc function

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>