Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
fpeg
Light Logo Dark Logo
  • Getting started

Examples

  • A calculator
  • A configuration file
  • CSV
  • JSON to Python objects
  • A filter language

Tutorials

  • A grammar for JSON
  • From a tree to your own objects

Guides

  • Operator precedence
  • Building an AST
  • Indentation
  • Interpolated strings
  • Composing grammars
  • A language over Python
  • Errors and recovery
  • Performance

Reference

  • Grammar language
  • Semantics
  • Parse tree
  • Python API
  • Command line
  • Diagnostics
    • E101 Syntax error
    • E102 Invalid escape
    • E103 Unknown Unicode property
    • E104 Number too large
    • E201 Unknown rule
    • E202 Undeclared flag
    • E203 Unknown attribute
    • E204 Defined twice
    • E205 Invalid name
    • E206 Wrong number of arguments
    • E207 Unknown field in a builder
    • E208 Missing builder function
    • E301 Syntactic rule in a terminal
    • E302 Form that does not fit the rule
    • E303 Precedence block of the wrong form
    • E304 Field in a transparent rule
    • E305 Field over several items
    • E306 Empty literal
    • E307 Character class
    • E308 Count out of range
    • E309 Builder without a place
    • E310 Builder arguments that do not fit
    • E401 Nesting too deep
    • E402 Grammar too large
    • E501 Not supported yet
    • E601 Unknown grammar
    • E602 A grammar takes itself in
    • E603 Imported and defined
    • E604 Not in the grammar imported
    • E605 Misplaced inherited alternatives
    • E901 Internal error
    • W101 Alternative that is never tried
    • W102 Literal that an earlier literal shadows
    • W103 Alternative that an earlier one shadows
    • W201 Repetition of an expression that can match nothing
    • W202 Rule that calls itself at both ends
    • W301 Transparent alternative whose shape depends on the input
    • W302 Builder on a transparent alternative that never makes a node
    • W401 Flag that is never set or never tested
    • W402 Parameter that its rule never uses
    • W403 Recovery for a label that nothing raises
  • Known limits

Explanation

  • How fpeg works
  • Benchmarks
  • Related projects

Project

  • Planned features
Back to top
Copyright © 2026 Dominik Schwimmbeck
Made with Sphinx and @pradyunsg's Furo