summaryrefslogtreecommitdiff
path: root/src/tparse/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/token.go')
-rw-r--r--src/tparse/token.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tparse/token.go b/src/tparse/token.go
index 51a2123..182b2e0 100644
--- a/src/tparse/token.go
+++ b/src/tparse/token.go
@@ -26,12 +26,10 @@ type Token struct {
// Node represents a node in an AST
type Node struct {
- Parent *Node
- Data Token
- Sub []Node
+ Data Token
+ Sub []Node
}
func makeParent(parent *Node, child Node) {
- child.Parent = parent
parent.Sub = append(parent.Sub, child)
}