• Preparing search index...
  • The search index is not available
Kombo - v3.0.0
  • Kombo - v3.0.0
  • Advanced
  • run

Function run

  • run<A, CTX, PROBLEM>(parser: Parser.Parser<A, CTX, PROBLEM>): ((src: string) => Result<A, Parser.DeadEnd<CTX, PROBLEM>[]>)
  • This works just like Simple.run. The only difference is that when it fails, it has much more precise information for each dead end.

    See

    • run is the infix version of run

    Type Parameters

    • A

    • CTX

    • PROBLEM

    Parameters

    • parser: Parser.Parser<A, CTX, PROBLEM>

    Returns ((src: string) => Result<A, Parser.DeadEnd<CTX, PROBLEM>[]>)

      • (src: string): Result<A, Parser.DeadEnd<CTX, PROBLEM>[]>
      • Parameters

        • src: string

        Returns Result<A, Parser.DeadEnd<CTX, PROBLEM>[]>

    • Defined in Advanced.ts:135
githubkombo-jsonkombo-workshop

Settings

Member Visibility

Theme

Modules

  • Kombo - v3.0.0
    • Advanced
    • Helpers
    • Parser
    • Result
    • Simple
  • Done
  • Loop
  • Nestable
  • Step
  • Token
  • Trailing
  • Nestable
  • Trailing
  • getCol
  • getIndent
  • getOffset
  • getPosition
  • getRow
  • getSource
  • spaces
  • Done
  • Loop
  • Token
  • andThen
  • apply
  • backtrackable
  • chompIf
  • chompUntil
  • chompUntilEndOr
  • chompWhile
  • chompWhile1
  • commit
  • end
  • float
  • getChompedString
  • inContext
  • int
  • isDone
  • isLoop
  • isNestable
  • isNotNestable
  • keyword
  • lazy
  • lineComment
  • loop
  • many
  • many1
  • map
  • map2
  • mapChompedString
  • multiComment
  • number
  • oneOf
  • oneOfMany
  • optional
  • problem
  • run
  • sequence
  • skip1st
  • skip2nd
  • succeed
  • symbol
  • token
  • variable
  • withIndent