MCPcopy Index your code
hub / github.com/python/cpython / validate_grammar

Function validate_grammar

Tools/peg_generator/pegen/validator.py:80–84  ·  view source on GitHub ↗
(the_grammar: grammar.Grammar)

Source from the content-addressed store, hash-verified

78 )
79
80def validate_grammar(the_grammar: grammar.Grammar) -> None:
81 for validator_cls in GrammarValidator.__subclasses__():
82 validator = validator_cls(the_grammar)
83 for rule_name, rule in the_grammar.rules.items():
84 validator.validate_rule(rule_name, rule)

Callers 1

mainFunction · 0.90

Calls 2

validate_ruleMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…