ParseText parses a query text in string form.
(text string)
| 45 | |
| 46 | // ParseText parses a query text in string form. |
| 47 | func ParseText(text string) (*AST, error) { |
| 48 | return ParseFiles(srcfiles.Plain(text)) |
| 49 | } |
| 50 | |
| 51 | // ParseFiles parses a query text comprised of a mixture of plain text |
| 52 | // and source files, tracking file names and line numbers for error reporting. |