diff --git a/docs/docs/usage.rst b/docs/docs/usage.rst new file mode 100644 index 0000000..a8e45e8 --- /dev/null +++ b/docs/docs/usage.rst @@ -0,0 +1,33 @@ +.. include:: ../global.rst + +Usage +===== + +|parso| works around grammars. You can simply create Python grammars by calling +``load_grammar``. Grammars (with a custom tokenizer and custom parser trees) +can also be created by directly instantiating ``Grammar``. More information +about the resulting objects can be found in the :ref:`parser tree documentation +`. + +.. automodule:: parso.grammar + :members: + :undoc-members: + + +Utility +------- + +.. autofunction:: parso.parse + +.. automodule:: parso.utils + :members: + :undoc-members: + + +Used By +------- + +- jedi_ (which is used by IPython and a lot of plugins). + + +.. _jedi: https://github.com/davidhalter/jedi