]> granicus.if.org Git - python/commitdiff
Add the grammar to the reference manual, since the new docs don't
authorGeorg Brandl <georg@python.org>
Fri, 1 Aug 2008 20:04:43 +0000 (20:04 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 1 Aug 2008 20:04:43 +0000 (20:04 +0000)
have the feature of putting all the small EBNF snippets together
into one big file.

Doc/reference/grammar.rst [new file with mode: 0644]
Doc/reference/index.rst

diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst
new file mode 100644 (file)
index 0000000..83d0f85
--- /dev/null
@@ -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
index 18bf0537a927a43d78c73a5820216f23dc3ed445..adb5420f3d3910a2602a8c52a2f5f353f3d56749 100644 (file)
@@ -27,4 +27,4 @@ interfaces available to C/C++ programmers in detail.
    simple_stmts.rst
    compound_stmts.rst
    toplevel_components.rst
-
+   grammar.rst