Question

Comment compiler, lier et appeler différentes grammaires YACC en utilisant yyparse() dans un seul programme ?

Était-ce utile?

La solution

Utilisez l'option -p pour chaque grammaire yacc distincte génération

 -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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top