summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-08-01 20:04:43 (GMT)
committerGeorg Brandl <georg@python.org>2008-08-01 20:04:43 (GMT)
commit632f631c48c1c77cd96147fcd99049d93f846c0b (patch)
tree44065361bcc271ae4c5a158e8ca1ab597f66a1e1
parent1299e36a70d6bcd5e2874f855c47be5890030b76 (diff)
downloadcpython-632f631c48c1c77cd96147fcd99049d93f846c0b.zip
cpython-632f631c48c1c77cd96147fcd99049d93f846c0b.tar.gz
cpython-632f631c48c1c77cd96147fcd99049d93f846c0b.tar.bz2
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.
-rw-r--r--Doc/reference/grammar.rst7
-rw-r--r--Doc/reference/index.rst2
2 files changed, 8 insertions, 1 deletions
diff --git a/Doc/reference/grammar.rst b/Doc/reference/grammar.rst
new file mode 100644
index 0000000..83d0f85
--- /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 18bf053..adb5420 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