From 60a3d7c65e6cb1cfba90bba8f8b00fe2210ffae6 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sat, 19 Apr 2025 13:02:51 -0400 Subject: [PATCH] lang: interfaces: Add more information about graph semantics Sam thoughts. --- lang/interfaces/ast.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/interfaces/ast.go b/lang/interfaces/ast.go index 99bfb3ab..7de5ae00 100644 --- a/lang/interfaces/ast.go +++ b/lang/interfaces/ast.go @@ -86,7 +86,9 @@ type Stmt interface { TypeCheck() ([]*UnificationInvariant, error) // Graph returns the reactive function graph expressed by this node. It - // takes in the environment of any functions in scope. + // takes in the environment of any functions in scope. Intended to be + // called only once, creates and returns the graph and also stores it to + // be used in .Output if needed. Graph(env *Env) (*pgraph.Graph, error) // Output returns the output that this "program" produces. This output