_nt_inline_module (Treetop::Compiler::Metagrammar)

    # File lib/treetop/compiler/metagrammar.rb, line 2694
          def _nt_inline_module
            start_index = index
            if node_cache[:inline_module].has_key?(index)
              cached = node_cache[:inline_module][index]
              @index = cached.interval.end if cached
              return cached
            end

            i0, s0 = index, []
            if input.index('{', index) == index
              r1 = instantiate_node(SyntaxNode,input, index...(index + 1))
              @index += 1
            else
              terminal_parse_failure('{')
              r1 = nil
            end
            s0 << r1
            if r1
              s2, i2 = [], index
              loop do
                i3 = index
                r4 = _nt_inline_module
                if r4
                  r3 = r4
                else
                  i5, s5 = index, []
                  i6 = index
                  if input.index(Regexp.new('[{}]'), index) == index
                    r7 = instantiate_node(SyntaxNode,input, index...(index + 1))
                    @index += 1
                  else
                    r7 = nil
                  end
                  if r7
                    r6 = nil
                  else
                    self.index = i6
                    r6 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s5 << r6
                  if r6
                    if index < input_length
                      r8 = instantiate_node(SyntaxNode,input, index...(index + 1))
                      @index += 1
                    else
                      terminal_parse_failure("any character")
                      r8 = nil
                    end
                    s5 << r8
                  end
                  if s5.last
                    r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
                    r5.extend(InlineModule0)
                  else
                    self.index = i5
                    r5 = nil
                  end
                  if r5
                    r3 = r5
                  else
                    self.index = i3
                    r3 = nil
                  end
                end
                if r3
                  s2 << r3
                else
                  break
                end
              end
              r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
              s0 << r2
              if r2
                if input.index('}', index) == index
                  r9 = instantiate_node(SyntaxNode,input, index...(index + 1))
                  @index += 1
                else
                  terminal_parse_failure('}')
                  r9 = nil
                end
                s0 << r9
              end
            end
            if s0.last
              r0 = instantiate_node(InlineModule,input, i0...index, s0)
              r0.extend(InlineModule1)
            else
              self.index = i0
              r0 = nil
            end

            node_cache[:inline_module][start_index] = r0

            return r0
          end