summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/grammar.rst7
-rw-r--r--Doc/reference/index.rst2
-rw-r--r--Doc/reference/simple_stmts.rst11
3 files changed, 15 insertions, 5 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
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index e4c0192..4fe92ff 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -727,10 +727,13 @@ raise a :exc:`SyntaxError`.
the module search path is carried out differently. The sequence of identifiers
up to the last dot is used to find a "package"; the final identifier is then
searched inside the package. A package is generally a subdirectory of a
-directory on ``sys.path`` that has a file :file:`__init__.py`. [XXX Can't be
-bothered to spell this out right now; see the URL
-http://www.python.org/doc/essays/packages.html for more details, also about how
-the module search works from inside a package.]
+directory on ``sys.path`` that has a file :file:`__init__.py`.
+
+..
+ [XXX Can't be
+ bothered to spell this out right now; see the URL
+ http://www.python.org/doc/essays/packages.html for more details, also about how
+ the module search works from inside a package.]
.. index:: builtin: __import__