diff --git a/phasm/parser.py b/phasm/parser.py index e4cc56f..ae02172 100644 --- a/phasm/parser.py +++ b/phasm/parser.py @@ -41,7 +41,7 @@ def phasm_parse(source: str) -> Module: our_visitor = OurVisitor() return our_visitor.visit_Module(res) -OurLocals = Dict[str, Union[FunctionParam]] # Also local variable and module constants? +OurLocals = Dict[str, Union[FunctionParam]] # FIXME: Does it become easier if we add ModuleConstantDef to this dict? class OurVisitor: """ @@ -147,7 +147,7 @@ class OurVisitor: if node.returns is not None: # Note: `-> None` would be a ast.Constant function.returns_type3 = self.visit_type(module, node.returns) else: - # Mostly works already, needs to fix Function.returns_type3 and have it updated + # FIXME: Mostly works already, needs to fix Function.returns_type3 and have it updated raise NotImplementedError('Function without an explicit return type') _not_implemented(not node.type_comment, 'FunctionDef.type_comment')