Reference

Information-oriented technical description. Consult these pages when you need to look something up, not to learn concepts (see Explanation for the “why”).

  • API reference — the public classes: Rule, Node, LiteralNode, NodeVisitor, and the exceptions.

  • Core rules — the RFC 5234 core rules available in every grammar.

  • Bundled grammars — the 30+ RFC grammar modules in abnf.grammars.

  • Configuration — class attributes and environment variables that change parser behavior.