Basic array table implementation

This commit is contained in:
Thomas Pelletier
2021-03-16 10:24:19 -04:00
parent c6892fcf5a
commit f9f9ccb777
5 changed files with 156 additions and 9 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (n *Node) Key() []Node {
panic(fmt.Errorf("KeyValue should have at least two children, not %d", len(n.Children)))
}
return n.Children[:len(n.Children)-1]
case Table:
case Table, ArrayTable:
return n.Children
default:
panic(fmt.Errorf("Key() is not supported on a %s", n.Kind))