command line fraction parser