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
,,,
DiagnosticHandler handleDiagnostic
)

Parameters

filename
Type: const(char)*

used for error messages

base
Type: const(char)*

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

begoffset
Type: size_t

starting offset into base[]

endoffset
Type: size_t

the last offset to read into base[]

doDocComment
Type: bool

handle documentation comments

commentToken
Type: bool

comments become TOK.comment's

Meta