Reading and writing grammars#

See also

Pyformlang CFG

cfg

Read (and write) a context-free grammar from (and to) different sources.

cnf

Read (and write) a context-free grammar in Chomsky normal form from (and to) different sources.

cnf_template

Read (and write) grammar templates in the .cnf format of the new-format graph archives, and materialize them over a concrete graph.

rsa

Read (and write) a Recursive State Automaton from (and to) different sources.

regex

Read (and write) a regular expression from (and to) different sources.