• Find the tokens in the given code and call the given callback

    Parameters

    • src: string

      The code

    • lang: any[] | ShjLanguage

      The language of the code

    • token: (arg0: string, arg1: ShjToken) => void

      The callback function this function will be given

      • the text of the token
      • the type of the token

    Returns Promise<void>

    tokenize