(z string)
| 47 | } |
| 48 | |
| 49 | func parsePigeon(z string) ([]byte, error) { |
| 50 | ast, err := parser.Parse("", []byte(z)) |
| 51 | if err != nil { |
| 52 | return nil, err |
| 53 | } |
| 54 | return json.Marshal(ast) |
| 55 | } |
| 56 | |
| 57 | // testQuery checks both that the parse is successful and that the |
| 58 | // two resulting ASTs from the round trip through json marshal and |