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

Class ValNode

components/expr_parser.py:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 return self.val
181
182class ValNode(ASTNode):
183 def __init__(self, val, data_type, fields):
184 super().__init__('VAL', val, data_type, fields)
185
186 def textual_form_core(self):
187 return self.val
188
189def _consume_a_node(tokens, cursor, data_type):
190 is_root = cursor == 0

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected