Added pipe and length docs, fix pipe precedence

This commit is contained in:
Mike Farah
2020-12-01 17:58:07 +11:00
parent da027f69d7
commit c9dbf04da3
18 changed files with 233 additions and 71 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func createTraversalTree(path []interface{}) *PathTreeNode {
return &PathTreeNode{Operation: &Operation{OperationType: TraversePath, Value: path[0], StringValue: fmt.Sprintf("%v", path[0])}}
}
return &PathTreeNode{
Operation: &Operation{OperationType: Pipe},
Operation: &Operation{OperationType: ShortPipe},
Lhs: createTraversalTree(path[0:1]),
Rhs: createTraversalTree(path[1:])}