Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const createToken

  • createToken(ignore: Parser<unknown>): (Anonymous function)
  • Create a parser for extracting a token. Ignores anything matched by ignore

    const token = createToken(whitespace)
    const ifKeyword = token(/if/y)
    keyword.matches('  if  ') // true

    Parameters

    • ignore: Parser<unknown>

      Parser that matches content that should be ignored

    Returns (Anonymous function)

Generated using TypeDoc