Skip to content

CustomTokenizer

CustomTokenizer = (code, grammar) => TokenStream

Defined in: prism/types.ts:97

A custom tokenizer for a grammar.

string

A string with the code this grammar needs to tokenize.

Grammar

The grammar with the custom tokenizer

TokenStream

A token stream representing the matched code.

tokenize symbol for more info.