Lexer.this

Creates a Lexer for the source code base[begoffset..endoffset+1]. The last character, baseendoffset, must be null (0) or EOF (0x1A).

class Lexer
nothrow pure
this
(
const(char)* filename
,
const(char)* base
,
size_t begoffset
,
size_t endoffset
,,,)

Parameters

filename const(char)*

used for error messages

base const(char)*

source code, must be terminated by a null (0) or EOF (0x1A) character

begoffset size_t

starting offset into base[]

endoffset size_t

the last offset to read into base[]

doDocComment bool

handle documentation comments

commentToken bool

comments become TOK.comment's

Meta