ddoc.lexer

Members

Classes

DdocException
class DdocException

Class for library exception.

DdocParseException
class DdocParseException
Undocumented in source.

Enums

Type
enum Type

DDoc token types.

Functions

getIndent
string getIndent(size_t offset, string text)

Return the indentation present before the given offset. offset should point past the indentation. e.g. : '\t\ttest' => Offset should be 2 (the index of 't'), and getIndent will return '\t\t'. If offset is 1, getIndent returns '\t'.

prevIsNewline
bool prevIsNewline(size_t offset, string text)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Lexer
struct Lexer

Lexer for DDoc comments.

Token
struct Token

DDoc token

Meta

Authors

Brian Schott

License