質問

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

役に立ちましたか?

解決

個別の 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.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top