class documentation

class BracketProcessor(MathsProcessor):

View In Hierarchy

A processor for bracket commands.
Method checkdirection Check if the given bit is the desired bracket command.
Method checkleft Check if the command at the given index is left.
Method checkright Check if the command at the given index is right.
Method findmax Find the max size of the contents between the two given indices.
Method findright Find the right bracket starting at the given index, or 0.
Method process Convert the bracket using Unicode pieces, if possible.
Method processleft Process a left bracket.
Method resize Resize a bracket command to the given size.

Inherited from MathsProcessor:

Method __unicode__ Return a printable description.
def checkdirection(self, bit, command):
Check if the given bit is the desired bracket command.
def checkleft(self, contents, index):
Check if the command at the given index is left.
def checkright(self, contents, index):
Check if the command at the given index is right.
def findmax(self, contents, leftindex, rightindex):
Find the max size of the contents between the two given indices.
def findright(self, contents, index):
Find the right bracket starting at the given index, or 0.
def process(self, contents, index):
Convert the bracket using Unicode pieces, if possible.
def processleft(self, contents, index):
Process a left bracket.
def resize(self, command, size):
Resize a bracket command to the given size.