Skip to content

Instantly share code, notes, and snippets.

@jterrazz
Created August 29, 2019 13:23
Show Gist options
  • Save jterrazz/ff26e3c4ba9f194230f7bf5acad74d74 to your computer and use it in GitHub Desktop.
Save jterrazz/ff26e3c4ba9f194230f7bf5acad74d74 to your computer and use it in GitHub Desktop.
class ConnectorNode(Node):
def __init__(self, connector_type):
super(ConnectorNode, self).__init__(tree)
self.type = connector_type
self.operands = [] # For example, in A + B, A and B are operands of +
self.state = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment