From 03e742821d6f61ccd4e950fd6cc48963b56da326 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 28 Oct 2022 20:45:26 -0700 Subject: [PATCH] Comments --- lamb/node.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lamb/node.py b/lamb/node.py index 25e0349..2e1edf1 100644 --- a/lamb/node.py +++ b/lamb/node.py @@ -84,6 +84,7 @@ class TreeWalker: class Node: """ Generic class for an element of an expression tree. + All nodes are subclasses of this. """ def __init__(self): @@ -451,8 +452,6 @@ def bind_variables(node: Node, *, ban_macro_name = None) -> None: # If this expression is part of a macro, # make sure we don't reference it inside itself. - # - # TODO: A chain of macros could be used to work around this. Fix that! if isinstance(n, Macro) and ban_macro_name is not None: if n.name == ban_macro_name: raise ReductionError("Macro cannot reference self")