Skip to content

Commit

Permalink
[readme] clean up code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 14, 2023
1 parent defe051 commit 90280bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ Using the Tool

.. code-block:: python
tatsu.parse(grammar, input)
ast = tatsu.parse(grammar, input)
The result is equivalent to calling::
The result is equivalent to calling::


.. code-block:: python
model = compile(grammar)
ast = model.parse(input)
Compiled grammars are cached for efficiency.
Compiled grammars are cached for efficiency.

- Compiles the grammar to the `Python`_ sourcecode that implements the parser.

Expand Down

0 comments on commit 90280bf

Please sign in to comment.