Сведения о вопросе

FromRussia

04:27, 22nd August, 2020

Теги

yacc    

Несколько грамматик YACC в одной программе

Просмотров: 373   Ответов: 1

Как мне скомпилировать, связать и вызвать различные грамматики YACC, используя yyparse() в одной программе?



  Сведения об ответе

SKY

02:28, 1st August, 2020

Используйте параметр-p для каждого отдельного поколения yacc grammar

 -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.


Ответить на вопрос

Чтобы ответить на вопрос вам нужно войти в систему или зарегистрироваться