alogos._grammar.parsing.io_with_regex

Functions

read_bnf(grammar, bnf_text, verbose, *symbols)

Read grammar from text in BNF notation.

read_ebnf(grammar, ebnf_text, verbose, *symbols)

Read grammar from text in EBNF notation.

write_bnf(grammar, rules_on_separate_lines, *symbols)

Write grammar as text in BNF notation.

write_ebnf(grammar, rules_on_separate_lines, *symbols)

Write grammar as text in EBNF notation.


Detailed object descriptions

alogos._grammar.parsing.io_with_regex.read_bnf(grammar, bnf_text, verbose, *symbols)[source]

Read grammar from text in BNF notation.

alogos._grammar.parsing.io_with_regex.read_ebnf(grammar, ebnf_text, verbose, *symbols)[source]

Read grammar from text in EBNF notation.

References

alogos._grammar.parsing.io_with_regex.write_bnf(grammar, rules_on_separate_lines, *symbols)[source]

Write grammar as text in BNF notation.

alogos._grammar.parsing.io_with_regex.write_ebnf(grammar, rules_on_separate_lines, *symbols)[source]

Write grammar as text in EBNF notation.