def __init__(self, numbermode=None):
        """ Initialize the parser.

        :param numbermode: supported values are ``None``, 'basic' or 'decimal'
        """

        self.numbermode = numbermode
        self.stack = []
        self.root = {}
        self.current = self.root
        self.chardata = []
def __init__ ( self , numbermode = None ) : self . numbermode = numbermode self . stack = [ ] self . root = { } self . current = self . root self . chardata = [ ]
Initialize the parser.

        :param numbermode: supported values are ``None``, 'basic' or 'decimal'