separated main-function, implemented yyparse parameter