@rule('<STR_LIT>')<EOL><INDENT>def visit_resource(self, _, children):<DEDENT>
return children[<NUM_LIT:0>]<EOL>
A resource in the query, could be a list, an object or a simple field.

        Arguments
        ---------
        _ (node) : parsimonious.nodes.Node.
        children : list
            - 0: an instance of a subclass of ``.resources.Resource``, depending of the type that
              matches the rule.

        Returns
        -------
        .resources.Resource
            An instance of a subclass of ``.resources.Resource``, with ``is_root`` set to ``True``.
            It's a ``.resources.List`` if the query matches the ``LIST`` rule,
            ``.resources.Object`` if it matches the ``OBJECT`` rule, or ``.resources.Field`` if
            it matches `` the ``FIELD`` rule.

        Example
        -------

        >>> DataQLParser(r'foo', default_rule='RESOURCE').data
        <Field[foo] />
        >>> DataQLParser(r'bar[name]', default_rule='RESOURCE').data
        <List[bar]>
          <Field[name] />
        </List[bar]>
        >>> DataQLParser(r'baz{name}', default_rule='RESOURCE').data
        <Object[baz]>
          <Field[name] />
        </Object[baz]>