You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the CPython docs we now use a custom directive that formats production lists almost as-is (it only looks for strings in quotes, colons after rule names, and token references in backticks).
That might be a way to get more kinds of grammars supported.
encukou
added a commit
to encukou/cpython
that referenced
this issue
Feb 5, 2025
Change pydoc_data to show the "input" of grammar snippet
directives, which is formatted the way we want.
See also this Sphinx issue: sphinx-doc/sphinx#13302
And: sphinx-doc/sphinx#4454
A known issue is cross-grammar links, like those in
the string format specification mini-language, which render
as reST source:
element_index: `~python-grammar:digit`+ | `index_string`
I don't see a good way to fix this before Sphinx is refactored.
Uh oh!
There was an error while loading. Please reload this page.
Feature
Provide support for Augmented Backus Naur Form [rfc5234] syntax in production list. The
grammar
option could have the following values:abnf-5234
for rfc5234abnf
, alias forabnf-5234
abnf-4234
for rfc4234ebnf
for ISO-14977 (when supported)sphinx
(default)Sample
The text was updated successfully, but these errors were encountered: