MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / node_is_cmp

Function node_is_cmp

src/Def.py:1440–1448  ·  view source on GitHub ↗
(kind: NodeKind)

Source from the content-addressed store, hash-verified

1438
1439
1440def node_is_cmp(kind: NodeKind) -> bool:
1441 return kind in (
1442 NodeKind.OP_EQ,
1443 NodeKind.OP_NEQ,
1444 NodeKind.OP_GT,
1445 NodeKind.OP_LT,
1446 NodeKind.OP_GTE,
1447 NodeKind.OP_LTE
1448 )
1449
1450
1451def cmp_modf_of(kind: NodeKind) -> str:

Callers 2

gen_treeFunction · 0.90
inject_condMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected