Author: | erg |
---|---|
Mode: | factor |
Date: | Wed, 14 Jan 2009 03:20:43 |
#include <stdio.h> #include "vm/master.h" int main(int argc, F_CHAR** argv) { char *ptr; F_CHAR *image = L"factor.image"; char *command = "USING: math.parser math threads prettyprint ; 1 1 + number>string 100000 sleep ."; init_factor_from_args(image, argc, argv, 1); ptr = factor_eval_string(command); wprintf("%s = %s\n", command, ptr); return 0; }