10

yyparse()1 つのプログラムで使用するさまざまな YACC 文法をコンパイル、リンク、および呼び出すにはどうすればよいですか?

4

1 に答える 1

7

個別の yacc 文法生成ごとに -p オプションを使用する

 -p prefix

           Use prefix instead of yy as the prefix for all external
           names produced by yacc.  For X/Open compliance, when the
           environment variable _XPG is set, then the -p option will work
           as described in the previous sentence.  If the environment
           variable _XPG is not set, then the -p option will work as
           described below in the -P option.
于 2008-08-25T10:12:12.667 に答える