MCPcopy Create free account
hub / github.com/LHRLAB/ChatKBQA / __init__

Method __init__

components/expr_parser.py:22–31  ·  view source on GitHub ↗
(self, construction, val, data_type, fields)

Source from the content-addressed store, hash-verified

20 UNARY = 'unary'
21 BINARY = 'binary'
22 def __init__(self, construction, val, data_type, fields):
23 self.construction = construction
24 self.val = val
25 # unary or binary
26 self.data_type = data_type
27 self.fields = fields
28
29 # determined after construction
30 self.depth = -1
31 self.level = -1
32
33 def assign_depth_and_level(self, level=0):
34 self.level = level

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected