pyebnf/primitive.py
def position(self):
    """Gets the position of the text the ParseNode processed. If the ParseNode does not have its
    own position, it looks to its first child for its position.

    'Value Nodes' (terminals) must have their own position, otherwise this method will throw an
    exception when it tries to get the position property of the string child.
    """
    pos = self._position
    if pos is None and self.children:
      ch1 = self.children[0]
      if isinstance(ch1, ParseNode):
        pos = ch1.position
    return pos
def position(self):
    pos = self._position
    if pos is None and self.children:
      ch1 = self.children[0]
      if isinstance(ch1, ParseNode):
        pos = ch1.position
    return pos
def position ( self ) : pos = self . _position if pos is None and self . children : ch1 = self . children [ 0 ] if isinstance ( ch1 , ParseNode ) : pos = ch1 . position return pos
Gets the position of the text the ParseNode processed. If the ParseNode does not have its
    own position, it looks to its first child for its position.

    'Value Nodes' (terminals) must have their own position, otherwise this method will throw an
    exception when it tries to get the position property of the string child.
Gets the position of the text the ParseNode processed . If the ParseNode does not have its own position it looks to its first child for its position .