PyHIR is the parser-independent representation every semantic analysis depends on. Covered: Module, Function, Class, Assign, AugAssign, Return, Name, Constant, Call, Attribute, Subscript, BinaryOp, UnaryOp, BoolOp, Compare, Tuple, List, Dict, Comprehension, If, While, For, Break, Continue, Raise, With, Assert, Import, ImportFrom, Global, Nonlocal, Pass. Still diagnostics: Lambda, `except*`, `yield from`, star arguments, nested function definitions. - [x] Class (#12), with decorators (#26) - [x] AugAssign (#26) - [x] If, While, For (#12) - [x] Await, Yield (#36) - [x] Raise (#12), With (#26), Try with exception edges (#36) - [x] Comprehension (#4); Lambda still a diagnostic - [x] Chained comparisons, keyword arguments, decorators, defaults (#26); star arguments still a diagnostic - [x] PyHIR schema version (`HIR_SCHEMA_VERSION`, #26) Reference: `docs/architecture.md` §3.2 PyHIR. Delivery: #26, #36
Activity