String literals#

Constructor#

String(value)

Grammar that exactly matches a string.

Attributes#

String.value

String to match exactly.

Rendering#

String.render([full, wrap])

Render the grammar as a regular expression.

String.as_string([indent])

Return a string representation of the grammar.

Simplification#

String.simplify()

Simplify the grammar.

Utility#

String.copy()

Create a copy of the grammar.

String.equals(other[, check_quantifier])

Check equality with another value.

Metadata#

Warning

String.attrs_dict is considered experimental and may change without warning.

String.attrs_dict()

Return instance attributes of the grammar.