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.

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.