Confutions about Bison's source code

stoneboo@sohu.com (Leonliu)
1 May 2002 23:20:53 -0400

          From comp.compilers

Related articles
Confutions about Bison's source code stoneboo@sohu.com (2002-05-01)
| List of all articles for this month |
From: stoneboo@sohu.com (Leonliu)
Newsgroups: comp.compilers
Date: 1 May 2002 23:20:53 -0400
Organization: http://groups.google.com/
Keywords: yacc, question
Posted-Date: 01 May 2002 23:20:53 EDT

I am reading the scource code of Bison ,and found that
some conflict in it ,I wish anyone who ever did the same
thing can give me some help.
      1.Bison define the sematic action code beside the BNF
          expressions by guard and action, what's the difference
          of them? why they are exclusive?
      2.I found that in bison/lib/obstack.h
          the author have use
              #if 0
                    ....
              #endif
          to turn off some function such as
          POINTER (obstck_finish) (obstack)
          void (obstack_lgrow) (obstack, length)
          and so forth.
          while the author still use them in bison/src/output.c
      3.In bison/lib ,I found that in many file's script .there is
          some "\" at the end of lines.Is it essential,or just some
          typing mistakes


        Can someone familar with it supply me some explanation?
        Any help would be greatly appreciated.
Thanks & regards,
Leon


URL of bison's scource code
      http://subversions.gnu.org/cgi-bin/cvsweb/bison/


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.