class documentation

class BracketState:

View In Hierarchy

Class for holding the depth of nested brackets when parsing text.

Method total Returns the sum of the bracket counters.
Method update Given a character c will update the nested bracket depth counters
Class Variable c Undocumented
Class Variable r Undocumented
Class Variable s Undocumented
def total(self) -> int:

Returns the sum of the bracket counters.

def update(self, c: str):

Given a character c will update the nested bracket depth counters

c: int =

Undocumented

r: int =

Undocumented

s: int =

Undocumented