Function parse

  • Parse a search string into a list of tokens.

    Example

    import { parse } from 'search-lexer'
    const tokens = parse('foo OR bar')
    console.log(tokens)

    Parameters

    • search: string

      The search string to parse.

    Returns ParserToken[]

    A list of tokens.

Generated using TypeDoc