Function tokenize

  • Shortcut for tokenize(source, bnf.literals);

    Parameters

    • source: string
    • Optionalunit: string

    Returns Token[]