如何使用编译、链接和调用不同的 YACC 语法 yyparse() 在一个程序中?

有帮助吗?

解决方案

对每个单独的 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