diff --git a/graphlang/graphlang.go b/graphlang/graphlang.go index 61272b1..d83a384 100644 --- a/graphlang/graphlang.go +++ b/graphlang/graphlang.go @@ -89,7 +89,7 @@ type TreeSitterParser struct { } // NewTreeSitterParser initializes the TreeSitterParser and connects it to Neo4j. -// NewTreeSitterParser initializes the TreeSitterParser with configuration +// NewTreeSitterParser creates a new TreeSitterParser instance configured for a specific project, root node, and source code base URL. func NewTreeSitterParser(driver neo4j.DriverWithContext, rootName, baseURL, projectRoot string) *TreeSitterParser { return &TreeSitterParser{ Handle: sitter.NewParser(), diff --git a/main.go b/main.go index c525611..99f0959 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/theapemachine/platform-graph/graphlang" ) -// Main function to demonstrate usage. +// main initializes configuration from environment variables, connects to a Neo4j database, and analyzes a directory using a TreeSitter-based parser. func main() { neo4jURI := os.Getenv("NEO4J_URI") neo4jUser := os.Getenv("NEO4J_USER")