tokenize

fnLexer tokenize(string input, string filename = "") @safe pure

Creates a lexer for the given CF source text.

This is a convenience function that constructs a Lexer range.

Parameters

inputThe CF source text to tokenize
filenameOptional filename for error reporting

Returns

A Lexer input range that yields tokens.