Documentation

Lean.Parser.Extra

@[inline, reducible]
Instances For
    @[inline]

    No-op parser combinator that annotates subtrees to be ignored in syntax patterns.

    Instances For
      @[inline]

      No-op parser that advises the pretty printer to emit a non-breaking space.

      Instances For
        @[inline]

        No-op parser that advises the pretty printer to emit a space/soft line break.

        Instances For
          @[inline]

          No-op parser that advises the pretty printer to emit a hard line break.

          Instances For
            @[inline]

            No-op parser combinator that advises the pretty printer to emit a Format.fill node.

            Instances For
              @[inline]

              No-op parser combinator that advises the pretty printer to emit a Format.group node.

              Instances For
                @[inline]

                No-op parser combinator that advises the pretty printer to indent the given syntax without grouping it.

                Instances For
                  @[inline]

                  No-op parser combinator that advises the pretty printer to group and indent the given syntax. By default, only syntax categories are grouped.

                  Instances For
                    @[inline]

                    No-op parser combinator that advises the pretty printer to dedent the given syntax. Dedenting can in particular be used to counteract automatic indentation.

                    Instances For
                      @[inline]

                      No-op parser combinator that allows the pretty printer to omit the group and indent operation in the enclosing category parser.

                      syntax ppAllowUngrouped "by " tacticSeq : term
                      -- allows a `by` after `:=` without linebreak in between:
                      theorem foo : True := by
                        trivial
                      
                      Instances For
                        @[inline]

                        No-op parser combinator that advises the pretty printer to dedent the given syntax, if it was grouped by the category parser. Dedenting can in particular be used to counteract automatic indentation.

                        Instances For
                          @[inline]

                          No-op parser combinator that prints a line break. The line break is soft if the combinator is followed by an ungrouped parser (see ppAllowUngrouped), otherwise hard.

                          Instances For