Move apply_substitutions() regexp handling function up in file Use apply_substitutions() in read_input() routine also Moved "extern int yyparse()" prototype to start of file