From: Georg Brandl Date: Fri, 1 Aug 2008 20:04:43 +0000 (+0000) Subject: Add the grammar to the reference manual, since the new docs don't X-Git-Tag: v2.6b3~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=632f631c48c1c77cd96147fcd99049d93f846c0b;p=thirdparty%2FPython%2Fcpython.git Add the grammar to the reference manual, since the new docs don't have the feature of putting all the small EBNF snippets together into one big file. --- diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst new file mode 100644 index 000000000000..83d0f8532c63 --- /dev/null +++ b/Doc/reference/grammar.rst @@ -0,0 +1,7 @@ +Full Grammar specification +========================== + +This is the full Python grammar, as it is read by the parser generator and used +to parse Python source files: + +.. literalinclude:: ../../Grammar/Grammar diff --git a/Doc/reference/index.rst b/Doc/reference/index.rst index 18bf0537a927..adb5420f3d39 100644 --- a/Doc/reference/index.rst +++ b/Doc/reference/index.rst @@ -27,4 +27,4 @@ interfaces available to C/C++ programmers in detail. simple_stmts.rst compound_stmts.rst toplevel_components.rst - + grammar.rst