Function variable

  • Just like Simple.variable except you specify the problem yourself.

    Type Parameters

    • PROBLEM

    Parameters

    • args: {
          expecting: PROBLEM;
          inner: ((char: string) => boolean);
          reserved: Set<string>;
          start: ((char: string) => boolean);
      }
      • expecting: PROBLEM
      • inner: ((char: string) => boolean)
          • (char: string): boolean
          • Parameters

            • char: string

            Returns boolean

      • reserved: Set<string>
      • start: ((char: string) => boolean)
          • (char: string): boolean
          • Parameters

            • char: string

            Returns boolean

    Returns Parser.Parser<string, never, PROBLEM>