grammatica.grammar.DerivationRule.as_string#
- grammar.DerivationRule.as_string(indent=None)[source]#
Return a string representation of the grammar.
- Parameters:
indent (
int, optional) – Number of spaces to indent each level. Defaults to None.- Returns:
str – String representation of the grammar.
- Raises:
ValueError – Attribute type is not supported.