| 129 | } |
| 130 | |
| 131 | RET parse_string(PARAMS) { |
| 132 | struct graphql_token *tok = list_top(tokens, struct graphql_token, node); |
| 133 | if (!tok || tok->token_type != 's') { |
| 134 | *err = "string expected"; return NULL; |
| 135 | } |
| 136 | CONSUME_ONE; |
| 137 | return tok; |
| 138 | } |
| 139 | |
| 140 | // The following functions create the branches of the AST. |
| 141 |
no outgoing calls
no test coverage detected