Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the <a href="http://www.parashift.com/c++-faq-lite/" rel="noreferrer">C++ FAQ Lite</a>:</p> <p><a href="http://www.parashift.com/c++-faq-lite/compiler-dependencies.html#faq-38.11" rel="noreferrer">38.11 Is there a yacc-able C++ grammar?</a></p> <blockquote> <p>The primary yacc grammar you'll want is from Ed Willink. Ed believes his grammar is fully compliant with <a href="http://www.parashift.com/c++-faq-lite/big-picture.html#faq-6.13" rel="noreferrer">the ISO/ANSI C++ standard</a>, however he doesn't warrant it: "the grammar has not," he says, "been used in anger." You can get <a href="http://www.computing.surrey.ac.uk/research/dsrg/fog/CxxGrammar.y" rel="noreferrer">the grammar without action routines</a> or <a href="http://www.computing.surrey.ac.uk/research/dsrg/fog/CxxTester.y" rel="noreferrer">the grammar with dummy action routines</a>. You can also get <a href="http://www.computing.surrey.ac.uk/research/dsrg/fog/CxxLexer.l" rel="noreferrer">the corresponding lexer</a>. For those who are interested in how he achieves a context-free parser (by pushing all the ambiguities plus a small number of repairs to be done later after parsing is complete), you might want to read chapter 4 of <a href="http://www.computing.surrey.ac.uk/research/dsrg/fog/FogThesis.pdf" rel="noreferrer">his thesis</a>.</p> <p>There is also a very old yacc grammar that doesn't support templates, exceptions, nor namespaces; plus it deviates from the core language in some subtle ways. You can get that grammar <a href="http://www.empathy.com/pccts/roskind.zip" rel="noreferrer">here</a> or <a href="http://srawgw.sra.co.jp/.a/pub/cmd/c++grammar2.0.tar.gz" rel="noreferrer">here</a>.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload