Documentation

Lake.Toml.ParserUtil

TOML Parser Utilities #

Generic parser utilities used by Lake's TOML parser.

Instances For
    Instances For
      Instances For
        @[inline]

        ParserFn combinator that runs f with the current position.

        Instances For

          Match an arbitrary parser or do nothing.

          Instances For
            @[inline]

            A sequence of n repetitions of a parser function.

            Instances For
              Instances For
                @[inline]
                Instances For
                  Instances For

                    Consume a single digit (i.e., Char.isDigit).

                    Instances For

                      Consume a two digits (i.e., Char.isDigit).

                      Instances For

                        Consume a single matching character.

                        Instances For
                          partial def Lake.Toml.strAuxFn (str : String) (expected : List String) (strPos : String.Pos.Raw) :

                          Consume a matching string atomically.

                          Instances For
                            partial def Lake.Toml.sepByChar1AuxFn (p : CharBool) (sep : Char) (expected : List String := []) :
                            partial def Lake.Toml.sepByChar1Fn (p : CharBool) (sep : Char) (expected : List String := []) :

                            Push a new atom onto the syntax stack.

                            Instances For

                              Match an arbitrary ParserFn and return the consumed String in a Syntax.atom.

                              Instances For

                                Parse a single character as an atom.

                                Instances For

                                  Parse the trimmed string as an atom (but use the full string for formatting).

                                  Instances For

                                    Push (Syntax.node kind <new-atom>) onto the syntax stack.

                                    Instances For
                                      @[reducible, inline]

                                      Parser → Parser hidden by an abbrev. Prevents the formatter/parenthesizer generator from transforming it.

                                      Instances For
                                        @[inline]
                                        Instances For
                                          @[inline]
                                          Instances For