//Copy makes a deep copy of the token
Copy makes a deep copy of the token
// Copy makes a deep copy of the token
func (t Token) Copy() Token {
	res := Token{Pos: t.Pos, Word: t.Word, Nodes: []Node{}}
	for _, v := range t.Nodes {
		res.Nodes = append(res.Nodes, v.Copy())
	}
	return res
}
func ( t Token ) Copy ( ) Token { res := Token { Pos : t . Pos , Word : t . Word , Nodes : [ ] Node { } } for _ , v := range t . Nodes { res . Nodes = append ( res . Nodes , v . Copy ( ) ) } return res }
Copy makes a deep copy of the token
Copy makes a deep copy of the token